pt-heartbeat not daemonizing when invoked with --stop --update

Bug #957787 reported by Tom Hodder on 2012-03-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to

Bug Description

with the following invocation ;
/usr/bin/pt-heartbeat --user=heartbeat --password=XXX --create-table -D percona --table heartbeat --update -h myserver --interval 10 --sentinel /tmp/pt-heartbeat-sentinel --stop --daemonize

the command is not going into the background, or returning an error.

Daniel Nichter (daniel-nichter) wrote :

Can you execute that command with PTDEBUG=1 at the start and ">dbg.txt 2>&1" at the end then attach dbg.txt? The tool should strip the password, but double-check dbg.txt anyway.

Changed in percona-toolkit:
status: New → Triaged
tags: added: daemon pt-heartbeat
Baron Schwartz (baron-xaprb) wrote :

I suspect no bug, but just some unexpected interaction with --sentinel and --stop. With no further feedback from the OP I suggest we WontFix this.

Brian Fraser (fraserbn) on 2012-11-02
Changed in percona-toolkit:
status: Triaged → Incomplete

Tested with the latest Percona Toolkit and works as expected, it goes to the background.

# pt-heartbeat --user=root --create-table -D percona --table heartbeat --update -h --interval 10 --sentinel /tmp/pt-heartbeat-sentinel --stop --daemonize
Successfully created file /tmp/pt-heartbeat-sentinel
# ps aux | grep pt-heartbeat
root 8240 0.0 0.3 80196 13536 ? Ss 12:37 0:00 perl /usr/bin/pt-heartbeat --user=root --create-table -D percona --table heartbeat --update -h --interval 10 --sentinel /tmp/pt-heartbeat-sentinel --stop --daemonize

Changed in percona-toolkit:
status: Incomplete → Invalid

Percona now uses JIRA for bug reports so this bug report is migrated to:

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers