1 --- sanlock-3.9.1/init.d/sanlock-sysv.orig 1970-01-01 01:00:00.000000000 +0100
2 +++ sanlock-3.9.1/init.d/sanlock-sysv 2023-12-13 23:47:19.000000000 +0100
6 +# sanlock - SAN-based lock manager
8 +# chkconfig: 2345 97 03
9 +# description: starts and stops sanlock daemon
15 +# Required-Start: $time $syslog wdmd
16 +# Required-Stop: $syslog
19 +# Default-Start: 2 3 4 5
20 +# Default-Stop: 0 1 6
21 +# Short-Description: starts and stops sanlock daemon
22 +# Description: starts and stops sanlock daemon
25 +. /etc/rc.d/init.d/functions
28 +runfile="/run/$prog/$prog.pid"
29 +lockfile="/var/lock/subsys/$prog"
30 +exec="/usr/sbin/$prog"
32 +SANLOCKUSER="sanlock"
33 +SANLOCKOPTS="-U $SANLOCKUSER -G $SANLOCKUSER"
35 +[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
38 + [ -x $exec ] || exit 5
40 + if [ ! -d /run/$prog ]; then
41 + install -d -o $SANLOCKUSER -g $SANLOCKUSER -m 775 /run/$prog
42 + [ -x /sbin/restorecon ] && restorecon /run/$prog
45 + echo -n $"Starting $prog: "
46 + daemon $prog daemon $SANLOCKOPTS
49 + [ $retval -eq 0 ] && touch $lockfile
54 + PID=$(pidofproc -p $runfile $prog)
56 + echo -n $"Sending stop signal $prog ($PID): "
57 + killproc -p $runfile $prog -TERM
61 + if [ $retval -ne 0 ]; then
65 + echo -n $"Waiting for $prog ($PID) to stop:"
68 + while checkpid $PID; do
70 + timeout=$((timeout - 1))
71 + if [ "$timeout" -le 0 ]; then
96 + rh_status >/dev/null 2>&1
101 + rh_status_q && exit 0
105 + rh_status_q || exit 0
112 + rh_status_q || exit 7
121 + condrestart|try-restart)
122 + rh_status_q || exit 0
126 + echo $"Usage $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
130 --- sanlock-3.9.1/init.d/wdmd-sysv.orig 1970-01-01 01:00:00.000000000 +0100
131 +++ sanlock-3.9.1/init.d/wdmd-sysv 2023-12-13 23:47:19.000000000 +0100
135 +# wdmd - watchdog multiplexing daemon
137 +# chkconfig: 2345 97 03
138 +# description: starts and stops wdmd daemon
144 +# Required-Start: $time $syslog
145 +# Required-Stop: $syslog
148 +# Default-Start: 2 3 4 5
149 +# Default-Stop: 0 1 6
150 +# Short-Description: starts and stops wdmd daemon
151 +# Description: starts and stops wdmd daemon
154 +. /etc/rc.d/init.d/functions
157 +runfile="/run/$prog/$prog.pid"
158 +lockfile="/var/lock/subsys/$prog"
159 +exec="/usr/sbin/$prog"
162 +WDMDOPTS="-G $WDMDGROUP"
164 +[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
167 + $exec --probe > /dev/null 2>&1
176 + if [ $retval -ne 0 ]; then
177 + echo -n $"Loading the softdog kernel module: "
178 + modprobe softdog && udevadm settle
182 + if [ $retval -ne 0 ]; then
193 + [ -x $exec ] || exit 5
195 + if [ ! -d /run/$prog ]; then
196 + install -d -g $WDMDGROUP -m 775 /run/$prog
197 + [ -x /sbin/restorecon ] && restorecon /run/$prog
200 + echo -n $"Starting $prog: "
201 + daemon $prog $WDMDOPTS
204 + [ $retval -eq 0 ] && touch $lockfile
209 + PID=$(pidofproc -p $runfile $prog)
211 + echo -n $"Sending stop signal $prog ($PID): "
212 + killproc -p $runfile $prog -TERM
216 + if [ $retval -ne 0 ]; then
220 + echo -n $"Waiting for $prog ($PID) to stop:"
223 + while checkpid $PID; do
225 + timeout=$((timeout - 1))
226 + if [ "$timeout" -le 0 ]; then
238 + rh_status_q && stop
251 + rh_status >/dev/null 2>&1
256 + rh_status_q && exit 0
260 + rh_status_q || exit 0
267 + rh_status_q || exit 7
279 + condrestart|try-restart)
280 + rh_status_q || exit 0
284 + echo $"Usage $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"