]> git.pld-linux.org Git - packages/cyrus-sasl.git/commitdiff
This commit was manufactured by cvs2git to create branch 'RA-branch'.
authorcvs2git <feedback@pld-linux.org>
Tue, 24 Jun 2003 10:55:44 +0000 (10:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Cherrypick from master 2003-06-24 10:55:44 UTC mguevara <mguevara@pld-linux.org> '- msg spelling salsauthd -> saslauthd':
    saslauthd.init -> 1.6

saslauthd.init [new file with mode: 0644]

diff --git a/saslauthd.init b/saslauthd.init
new file mode 100644 (file)
index 0000000..11d1f8e
--- /dev/null
@@ -0,0 +1,68 @@
+#!/bin/sh
+#
+# saslauthd    SASL AUTH Daemon
+#
+# chkconfig:   2345 40 60
+# description: SASL AUTH Daemon
+# processname: saslauthd
+# pidfile:     /var/state/sasl/mux.pid
+
+# $Id$
+
+# Source function library
+. /etc/rc.d/init.d/functions
+
+# Get service config
+[ -f /etc/sysconfig/saslauthd ] && . /etc/sysconfig/saslauthd
+
+if [ "x$SASL_AUTHMECH" != "x" ]; then
+       SASLAUTHD_OPTS="$SASLAUTHD_OPTS -a $SASL_AUTHMECH"
+fi
+
+if [ "x$SASL_RIMAP_HOSTNAME" != "x" ]; then
+       SASLAUTHD_OPTS="$SASLAUTHD_OPTS -H $SASL_RIMAP_HOSTNAME"
+fi
+
+#if is_yes "$SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS" ; then
+#      SASLAUTHD_OPTS="$SASLAUTHD_OPTS -T"
+#fi
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+  start)
+       # Check if the service is already running?
+       if [ ! -f /var/lock/subsys/saslauthd ]; then
+               msg_starting saslauthd
+               daemon saslauthd $SASLAUTHD_OPTS
+               RETVAL=$?
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/saslauthd
+       else
+               msg_already_running saslauthd
+       fi
+       ;;
+  stop)
+       # Stop daemons.
+       if [ -f /var/lock/subsys/saslauthd ]; then
+               msg_stopping saslauthd
+               killproc saslauthd
+               rm -f /var/lock/subsys/saslauthd /var/run/saslauthd.pid >/dev/null 2>&1
+       else
+               msg_not_running saslauthd
+       fi
+       ;;
+  status)
+       status saslauthd
+       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.029866 seconds and 4 git commands to generate.