Index: munge.sh =================================================================== RCS file: /cvsroot/pkgsrc/security/munge/files/munge.sh,v retrieving revision 1.1 diff -r1.1 munge.sh 11a12,21 > rundir=/var/run/munge > pidfile=${rundir}/${name}.pid > > MUNGE_ARGS=" --pid-file ${pidfile}" > > start_precmd="munge_precmd" > start_cmd="munge_startcmd" > stop_cmd="munge_stop" > status_cmd="munge_status" > 13a24,73 > munge_precmd() > { > mkdir -p ${rundir} || exit 1 > } > > munge_startcmd() > { > munge_pid="" > > if test -e ${pidfile}; then > munge_pid=$(check_pidfile ${pidfile} ${command}) > printf "MUNGE already running? PID ${munge_pid}\n" > exit 0 > fi > > printf "Starting MUNGE: " > > ${command} ${MUNGE_ARGS} > > munge_pid=$(check_pidfile ${pidfile} ${command}) > printf "${munge_pid} started\n" > } > > munge_stop() > { > printf "Stopping MUNGE: " > munge_pid=$(check_pidfile ${pidfile} ${command}) > > if test -z ${munge_pid}; then > printf "No PIDs found\n" > exit 0 > fi > > kill -${sig_stop:-TERM} $munge_pid > wait_for_pids $munge_pid > printf "${munge_pid} killed\n" > } > > munge_status() > { > munge_pid=$(check_pidfile ${pidfile} ${command}) > > if test -n "$munge_pid"; then > printf "MUNGE is running as PID $munge_pid.\n" > else > printf "MUNGE is not running.\n" > fi > > } >