]> git.pld-linux.org Git - packages/cyrus-sasl.git/commitdiff
init files for saslsauthd
authorArtur Frysiak <artur@frysiak.net>
Wed, 2 May 2001 10:55:48 +0000 (10:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    saslauthd.init -> 1.1
    saslauthd.sysconfig -> 1.1

saslauthd.init [new file with mode: 0644]
saslauthd.sysconfig [new file with mode: 0644]

diff --git a/saslauthd.init b/saslauthd.init
new file mode 100644 (file)
index 0000000..0d31eee
--- /dev/null
@@ -0,0 +1,69 @@
+#!/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
+
+# 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 salsauthd
+               daemon saslauthd $SASLAUTHD_OPTS
+               RETVAL=$?
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/saslauthd
+       else
+               msg_Already_Running saslauthd
+               exit 1
+       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
+               exit 1
+       fi
+       ;;
+  status)
+       status saslauthd
+       exit $?
+       ;;
+  restart|reload)
+       $0 stop
+       $0 start
+       ;;
+  *)
+       msg_Usage "$0 {start|stop|restart|status}"
+       exit 1
+       ;;
+esac
+
+exit $RETVAL
diff --git a/saslauthd.sysconfig b/saslauthd.sysconfig
new file mode 100644 (file)
index 0000000..a94d076
--- /dev/null
@@ -0,0 +1,9 @@
+# $Id$
+# Authentications mechanism (for list see saslauthd -v)
+SASL_AUTHMECH=pam
+
+# Hostname for remote IMAP server (if rimap auth mech is used)
+SASL_RIMAP_HOSTNAME=
+
+# Honour time-of-day login restrictions (if shadow auth mech is used)
+SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS=yes 
This page took 0.032745 seconds and 4 git commands to generate.