3 # certmaster certmaster
4 ###################################
10 # Required-Start: network
11 # Default-Start: 3 4 5
12 # Default-Stop: 0 1 2 6
13 # Short-Description: certificate master for Fedora Unified Network Control 'master server only'
14 # Description: certificate master to sign/manage ca/cert infrastructure
20 # description: certificate master to sign/manage ca/cert infrastructure
22 # processname: /usr/bin/certmaster
25 [ -x /usr
/bin
/certmaster
] ||
exit 0
29 DAEMON
=/usr
/bin
/certmaster
30 CONFIG_ARGS
="--daemon"
34 ps wt? |
grep "$DAEMON" 2>&1 > /dev
/null
35 if [ "x$?" = "x0" ]; then
37 echo "certmaster is running"
40 echo "certmaster is not running"
45 if [ -f /lib
/lsb
/init-functions
]; then
46 .
/lib
/lsb
/init-functions
47 alias START_DAEMON
=start_daemon
49 alias LOG_SUCCESS
=log_success_msg
50 alias LOG_FAILURE
=log_failure_msg
51 alias LOG_WARNING
=log_warning_msg
52 elif [ -f /etc
/init.d
/functions
]; then
53 .
/etc
/init.d
/functions
54 alias START_DAEMON
=daemon
56 alias LOG_SUCCESS
=success
57 alias LOG_FAILURE
=failure
58 alias LOG_WARNING
=passed
60 echo "Error: your platform is not supported by $0" > /dev
/stderr
67 if [ -f /etc
/debian_version
]; then
68 log_begin_msg
"Starting certmaster daemon: "
69 start-stop-daemon
--exec $DAEMON --start --quiet -- $CONFIG_ARGS > /dev
/null
74 echo -n $
"Starting certmaster daemon: "
75 START_DAEMON
$PROCESS $CONFIG_ARGS
78 [ $RETVAL -eq 0 ] && touch /var
/lock
/subsys
/$SERVICE
84 if [ -f /etc
/debian_version
]; then
85 log_daemon_msg
"Stopping certmaster daemon" "certmaster"
86 start-stop-daemon
--stop --quiet --pidfile /var
/run
/certmaster.pid
--name certmaster
89 rm -f /var
/run
/certmaster.pid
91 echo -n $
"Stopping certmaster daemon: "
95 if [ $RETVAL -eq 0 ]; then
96 rm -f /var
/lock
/subsys
/$SERVICE
97 rm -f /var
/run
/$SERVICE.pid
107 # See how we were called.
117 [ -f /var
/lock
/subsys
/$SERVICE ] && restart ||
:
120 echo "can't reload configuration, you have to restart it"
124 echo $
"Usage: $0 {start|stop|status|restart|condrestart|reload}"