3 # funcd Fedora Unified Network Control
5 # chkconfig: 2345 98 02
7 # description: Crazy simple, secure remote management.
8 # processname: /usr/bin/funcd
12 # Source function library
13 . /etc/rc.d/init.d/functions
16 . /etc/sysconfig/network
18 # Get service config - may override defaults
19 [ -f /etc/sysconfig/funcd ] && . /etc/sysconfig/funcd
21 # Check that networking is up.
22 if is_yes "${NETWORKING}"; then
23 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
24 msg_network_down "funcd"
32 # Check if the service is already running?
33 if [ -f /var/lock/subsys/funcd ]; then
34 msg_already_running "funcd"
39 daemon /usr/bin/funcd --daemon
41 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/funcd
45 if [ ! -f /var/lock/subsys/funcd ]; then
46 msg_not_running "funcd"
52 killproc --pidfile /var/run/funcd.pid funcd -TERM
53 rm -f /var/lock/subsys/funcd
57 if [ ! -f /var/lock/subsys/funcd ]; then
58 msg_not_running "funcd"
69 # See how we were called.
92 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"