mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
Check --pid even if not --daemonize.
This commit is contained in:
@@ -957,6 +957,7 @@ if [ "$(basename "$0")" = "pt-stalk" ] \
|
|||||||
# use $! to get the PID of the child we just forked.
|
# use $! to get the PID of the child we just forked.
|
||||||
echo "$!" > $OPT_PID
|
echo "$!" > $OPT_PID
|
||||||
else
|
else
|
||||||
|
make_pid_file $OPT_PID $$
|
||||||
main "$@"
|
main "$@"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user