]> git.pld-linux.org Git - packages/certmaster.git/commitdiff
- initial PLD release
authorPatryk Zawadzki <patrys@room-303.com>
Tue, 4 Dec 2007 17:24:49 +0000 (17:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    certmaster.init -> 1.1

certmaster.init [new file with mode: 0644]

diff --git a/certmaster.init b/certmaster.init
new file mode 100644 (file)
index 0000000..eba288e
--- /dev/null
@@ -0,0 +1,49 @@
+#!/bin/sh
+#
+# func:                Starts the func certmaster daemon
+#
+# Version:     @(#) /etc/rc.d/init.d/func 0.1
+#
+# chkconfig:   - 98 99
+# description: Starts and stops the func daemon at startup and shutdown..
+
+. /etc/rc.d/init.d/functions
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+  start)
+       # Check if the service is already running?
+       if [ ! -f /var/lock/subsys/certmaster ]; then
+               msg_starting "certmaster"
+               daemon /usr/bin/certmaster
+               RETVAL=$?
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/certmaster
+       else
+               msg_already_running "certmaster"
+       fi
+       ;;
+  stop)
+       if [ -f /var/lock/subsys/certmaster ]; then
+               msg_stopping "certmaster"
+               killproc certmaster
+               rm -f /var/lock/subsys/certmaster
+       else
+               msg_not_running "certmaster"
+       fi
+       ;;
+  status)
+       status certmaster
+       exit $?
+       ;;
+  restart|force-reload)
+       $0 stop
+       $0 start
+       exit $?
+       ;;
+  *)
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
+esac
+
+exit $RETVAL
This page took 0.086902 seconds and 4 git commands to generate.