path: pacemaker_3.0.1-1.1/daemons/pacemakerd/pacemaker.service.in # uncomment ExecStopPost below. # # ExecStopPost=/bin/sh -c 'pidof corosync || \ # /usr/bin/systemctl --no-block stop pacemaker' path: pacemaker_3.0.1-1.1/daemons/pacemakerd/pacemaker.service.in # uncomment the next line too: # # ExecStopPost=/bin/sh -c 'pidof pacemaker-controld || killall -TERM corosync' # Pacemaker will restart along with Corosync if Corosync is stopped while path: pacemaker_3.0.1-1.1/etc/init.d/pacemaker.in if status $prog > /dev/null 2>&1; then touch "$LOCK_FILE" pidof $prog > "@localstatedir@/run/$prog.pid" success else path: pacemaker_3.0.1-1.1/etc/init.d/pacemaker.in if status $shutdown_prog > /dev/null 2>&1; then notify "Signaling $desc to terminate" kill -TERM $(pidof $prog) > /dev/null 2>&1 checkrc echo path: pacemaker_3.0.1-1.1/etc/init.d/pacemaker.in status() { pid=$(pidof $1 2>/dev/null) local rtrn=$? if [ $rtrn -ne 0 ]; then path: pacemaker_3.0.1-1.1/tools/cluster-clean.in cluster-helper $target -- "killall -q -9 corosync pacemakerd pacemaker-attrd pacemaker-based pacemaker-controld pacemaker-execd pacemaker-fenced pacemaker-remoted pacemaker-schedulerd dlm_controld gfs_controld" &> /dev/null cluster-helper $target -- 'kill -9 `pidof valgrind`' &> /dev/null if [ $kill == 2 ]; then path: pacemaker_3.0.1-1.1/daemons/execd/pacemaker_remote.in if status $prog > /dev/null 2>&1; then echo -n "Signaling $desc to terminate: " kill -TERM $(pidof $prog) > /dev/null 2>&1 success echo path: pacemaker_3.0.1-1.1/daemons/execd/pacemaker_remote.in if status $prog > /dev/null 2>&1; then touch "$LOCK_FILE" pidof $prog > "@localstatedir@/run/$prog.pid" success else path: pacemaker_3.0.1-1.1/daemons/execd/pacemaker_remote.in status() { pid=$(pidof $1 2>/dev/null) local rtrn=$? if [ $rtrn -ne 0 ]; then