8 [ -x /etc
/default
/munge
] && .
/etc
/default
/munge
10 PID
=`pidof -o %PPID /usr/sbin/munged`
13 stat_busy
"Starting MUNGE daemon"
14 VARRUNDIR
="/run/munge"
15 if [ ! -d "$VARRUNDIR" ]; then
16 mkdir
-m 755 -p "$VARRUNDIR"
17 [ -n "$USER" ] && chown
"$USER" "$VARRUNDIR"
19 [ -z "$PID" ] && su
"$USER" -c /usr
/sbin
/munged
"$DAEMON_ARGS" 2>&1
20 if [ $?
-gt 0 ] ; then
23 add_daemon
$daemon_name # create the 'state' dir
28 stat_busy
"Stopping MUNGE daemon"
29 [ "$PID" ] && kill $PID &> /dev
/null
33 rm_daemon
$daemon_name # remove the 'state' dir
43 stat_busy
"Checking MUNGE status"
44 ck_status
$daemon_name
47 echo "usage: $0 {start|stop|restart|status}"