diff options
author | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2008-02-29 14:27:43 -0500 |
---|---|---|
committer | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2008-02-29 14:27:43 -0500 |
commit | 9fd0d907c5893780f2baab0e9733e4a00ce75e98 (patch) | |
tree | bcd72d1ff053968897e95f71d7a22be7951af260 /init-scripts | |
parent | dd4a2266e476410084556ea7bce9dfa47e651690 (diff) | |
parent | bdc3f700d2ddee513173cd3ae6a82de11011bf84 (diff) | |
download | third_party-func-9fd0d907c5893780f2baab0e9733e4a00ce75e98.tar.gz third_party-func-9fd0d907c5893780f2baab0e9733e4a00ce75e98.tar.xz third_party-func-9fd0d907c5893780f2baab0e9733e4a00ce75e98.zip |
Merge commit 'origin/devel' into devel
Diffstat (limited to 'init-scripts')
-rwxr-xr-x | init-scripts/certmaster | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/init-scripts/certmaster b/init-scripts/certmaster deleted file mode 100755 index 819ba0d..0000000 --- a/init-scripts/certmaster +++ /dev/null @@ -1,112 +0,0 @@ -#!/bin/sh -# -# certmaster certmaster -################################### - -# LSB header - -### BEGIN INIT INFO -# Provides: certmaster -# Required-Start: network -# Default-Start: 3 4 5 -# Default-Stop: 0 1 2 6 -# Short-Description: certificate master for Fedora Unified Network Control 'master server only' -# Description: certificate master to sign/manage ca/cert infrastructure for func -### END INIT INFO - -# chkconfig header - -# chkconfig: - 98 99 -# description: certificate master to sign/manage ca/cert infrastructure for func -# -# processname: /usr/bin/certmaster - -# Sanity checks. -[ -x /usr/bin/certmaster ] || exit 0 - -SERVICE=certmaster -PROCESS=certmaster -DAEMON=/usr/bin/certmaster -CONFIG_ARGS="--daemon" - -CAStatus() -{ - ps wt? | grep "$DAEMON" 2>&1 > /dev/null - if [ "x$?" = "x0" ]; then - RVAL=0 - echo "certmaster is running" - else - RVAL=3 - echo "certmaster is not running" - fi -} - -if [ -f /lib/lsb/init-functions ]; then - . /lib/lsb/init-functions - alias START_DAEMON=start_daemon - alias STATUS=CAStatus - alias LOG_SUCCESS=log_success_msg - alias LOG_FAILURE=log_failure_msg - alias LOG_WARNING=log_warning_msg -elif [ -f /etc/init.d/functions ]; then - . /etc/init.d/functions - alias START_DAEMON=daemon - alias STATUS=status - alias LOG_SUCCESS=success - alias LOG_FAILURE=failure - alias LOG_WARNING=passed -else - echo "Error: your platform is not supported by $0" > /dev/stderr - exit 1 -fi - -RETVAL=0 - -start() { - echo -n $"Starting certmaster daemon: " - START_DAEMON $PROCESS $CONFIG_ARGS - RETVAL=$? - echo - [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE - return $RETVAL -} - -stop() { - echo -n $"Stopping certmaster daemon: " - killproc $PROCESS - RETVAL=$? - echo - if [ $RETVAL -eq 0 ]; then - rm -f /var/lock/subsys/$SERVICE - rm -f /var/run/$SERVICE.pid - fi -} - -restart() { - stop - start -} - -# See how we were called. -case "$1" in - start|stop|restart) - $1 - ;; - status) - STATUS $PROCESS - RETVAL=$? - ;; - condrestart) - [ -f /var/lock/subsys/$SERVICE ] && restart || : - ;; - reload) - echo "can't reload configuration, you have to restart it" - RETVAL=$? - ;; - *) - echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}" - exit 1 - ;; -esac -exit $RETVAL - |