path: corosync_3.1.10-1/init/corosync-notifyd.in esac # The version of __pids_pidof in /etc/init.d/functions calls pidof with -x # This means it matches scripts, including this one. # Redefine it here so that status (from the same file) works. path: corosync_3.1.10-1/init/corosync-notifyd.in echo -n "Signaling $desc ($prog) to terminate: " kill -TERM "$(pidof $prog)" > /dev/null 2>&1 success echo path: corosync_3.1.10-1/init/corosync-notifyd.in __pids_pidof() { pidof -c -o $$ -o $PPID -o %PPID "$1" || \ pidof -c -o $$ -o $PPID -o %PPID "${1##*/}" } path: corosync_3.1.10-1/init/corosync-notifyd.in # Otherwise simultaneous calls to stop() will loop forever __pids_pidof() { pidof -c -o $$ -o $PPID -o %PPID "$1" || \ pidof -c -o $$ -o $PPID -o %PPID "${1##*/}" } path: corosync_3.1.10-1/init/corosync-notifyd.in # Redefine it here so that status (from the same file) works. # Otherwise simultaneous calls to stop() will loop forever __pids_pidof() { pidof -c -o $$ -o $PPID -o %PPID "$1" || \ pidof -c -o $$ -o $PPID -o %PPID "${1##*/}" path: corosync_3.1.10-1/init/corosync-notifyd.in status() { pid=$(pidof $1 2>/dev/null) rtrn=$? if [ $rtrn -ne 0 ]; then path: corosync_3.1.10-1/debian/corosync-notifyd.init # to handle requests from services started subsequently which depend # on this one. As a last resort, sleep for some time. pidof $DAEMON > $PIDFILE } path: corosync_3.1.10-1/debian/corosync.init # to handle requests from services started subsequently which depend # on this one. As a last resort, sleep for some time. pidof corosync > $PIDFILE } path: corosync_3.1.10-1/init/corosync.in __pids_pidof() { pidof -c -o $$ -o $PPID -o %PPID "$1" || \ pidof -c -o $$ -o $PPID -o %PPID "${1##*/}" } path: corosync_3.1.10-1/init/corosync.in # Otherwise simultaneous calls to stop() will loop forever __pids_pidof() { pidof -c -o $$ -o $PPID -o %PPID "$1" || \ pidof -c -o $$ -o $PPID -o %PPID "${1##*/}" } path: corosync_3.1.10-1/init/corosync.in # Redefine it here so that status (from the same file) works. # Otherwise simultaneous calls to stop() will loop forever __pids_pidof() { pidof -c -o $$ -o $PPID -o %PPID "$1" || \ pidof -c -o $$ -o $PPID -o %PPID "${1##*/}" path: corosync_3.1.10-1/init/corosync.in res=$? if [ $res -ne 0 -a -z "$pid_file" ]; then pid=$(__pids_pidof "$1") [ -n "$pid" ] res=$? path: corosync_3.1.10-1/init/corosync.in esac # The version of __pids_pidof in /etc/init.d/functions calls pidof with -x # This means it matches scripts, including this one. # Redefine it here so that status (from the same file) works.