support for funcd sysv in arch -- _|- | _ _ _\|_()|<(/__\ .----------------------------------. ( astokes@xxxxxxxxxx || ) `----------------------------------'
#!/bin/bash . /etc/rc.conf . /etc/rc.d/functions [ -x /usr/bin/funcd ] || exit 0 SERVICE=funcd PROCESS=funcd DAEMON=/usr/bin/funcd CONFIG_ARGS="--daemon" PID=`pidof -o %PPID $DAEMON` start () { stat_busy "Starting $PROCESS" [ -z "$PID" ] && $DAEMON $CONFIG_ARGS RETVAL=$? if [ $RETVAL -gt 0 ]; then stat_fail else add_daemon $PROCESS fi stat_done } stop () { stat_busy "Stopping $PROCESS" [ ! -z "$PID" ] && kill $PID &> /dev/null RETVAL=$? if [ $RETVAL -gt 0]; then stat_fail else rm_daemon $PROCESS stat_done fi } restart () { stop start } case "$1" in start|stop|restart) $1 ;; *) echo $"Usage : $0 {start|stop|restart}" exhit 1 ;; esac exit $RETVAL
_______________________________________________ Func-list mailing list Func-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/func-list