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

Reported by Tom Hodder on 2012-03-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit
Undecided
Unassigned

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 127.0.0.1 --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 127.0.0.1 --interval 10 --sentinel /tmp/pt-heartbeat-sentinel --stop --daemonize

Changed in percona-toolkit:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers