3 # funcd Fedora Unified Network Control
4 ###################################
10 # Required-Start: network
12 # Default-Start: 3 4 5
13 # Default-Stop: 0 1 2 6
14 # Short-Description: Fedora Unified Network Control
15 # Description: Crazy simple, secure remote management.
21 # description: Crazy simple, secure remote management.
23 # processname: /usr/bin/funcd
26 [ -x /usr
/bin
/funcd
] ||
exit 0
31 CONFIG_ARGS
="--daemon"
36 ps wt? |
grep "$DAEMON" 2>&1 > /dev
/null
37 if [ "x$?" = "x0" ]; then
39 echo "$DAEMON is running"
42 echo "$DAEMON is not running"
46 if [ -f /lib
/lsb
/init-functions
]; then
47 .
/lib
/lsb
/init-functions
48 alias START_DAEMON
=start_daemon
49 alias STATUS
=FuncStatus
50 alias LOG_SUCCESS
=log_success_msg
51 alias LOG_FAILURE
=log_failure_msg
52 alias LOG_WARNING
=log_warning_msg
53 elif [ -f /etc
/init.d
/functions
]; then
54 .
/etc
/init.d
/functions
55 alias START_DAEMON
=daemon
57 alias LOG_SUCCESS
=success
58 alias LOG_FAILURE
=failure
59 alias LOG_WARNING
=passed
61 echo "Error: your platform is not supported by $0" > /dev
/stderr
69 echo -n $
"Starting func daemon: "
70 START_DAEMON
$PROCESS $CONFIG_ARGS
73 [ $RETVAL -eq 0 ] && touch /var
/lock
/subsys
/$SERVICE
78 echo -n $
"Stopping func daemon: "
82 if [ $RETVAL -eq 0 ]; then
83 rm -f /var
/lock
/subsys
/$SERVICE
84 rm -f /var
/run
/$SERVICE.pid
93 # See how we were called.
103 [ -f /var
/lock
/subsys
/$SERVICE ] && restart ||
:
106 echo "can't reload configuration, you have to restart it"
110 echo $
"Usage: $0 {start|stop|status|restart|condrestart|reload}"