2003-06-01 06:24:15 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2005-02-10 20:32:10 +01:00
|
|
|
# $FreeBSD$
|
2003-06-01 06:24:15 +02:00
|
|
|
#
|
|
|
|
|
2003-08-28 19:44:28 +02:00
|
|
|
# PROVIDE: saslauthd
|
|
|
|
# REQUIRE: DAEMON
|
|
|
|
# BEFORE: mail imap
|
2006-02-20 21:47:50 +01:00
|
|
|
# KEYWORD: shutdown
|
2003-06-01 06:24:15 +02:00
|
|
|
|
2003-08-28 19:44:28 +02:00
|
|
|
# Define these saslauthd_* variables in one of these files:
|
|
|
|
# /etc/rc.conf
|
|
|
|
# /etc/rc.conf.local
|
|
|
|
# /etc/rc.conf.d/saslauthd
|
2003-06-01 06:24:15 +02:00
|
|
|
#
|
2004-03-31 18:32:17 +02:00
|
|
|
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
2003-06-01 06:24:15 +02:00
|
|
|
#
|
2004-03-31 18:32:17 +02:00
|
|
|
saslauthd_enable=${saslauthd_enable:-"NO"} # Enable saslauthd
|
|
|
|
saslauthd_flags=${saslauthd_flags:-"-a pam"} # Flags to saslauthd program
|
2004-05-12 18:12:11 +02:00
|
|
|
#saslauthd_runpath="%%SASLAUTHD_RUNPATH%%" # Working directory
|
2009-07-15 18:56:10 +02:00
|
|
|
#saslauthd_program="%%PREFIX%%/sbin/saslauthd" # Location of saslauthd
|
2003-06-01 06:24:15 +02:00
|
|
|
|
2003-08-28 19:44:28 +02:00
|
|
|
. %%RC_SUBR%%
|
2003-06-01 06:24:15 +02:00
|
|
|
|
2003-08-28 19:44:28 +02:00
|
|
|
name="saslauthd"
|
|
|
|
rcvar=`set_rcvar`
|
2009-07-15 18:56:10 +02:00
|
|
|
command="%%PREFIX%%/sbin/${name}"
|
2003-06-01 06:24:15 +02:00
|
|
|
|
2003-08-28 19:44:28 +02:00
|
|
|
load_rc_config $name
|
2004-03-31 18:32:17 +02:00
|
|
|
|
|
|
|
if [ -z "$saslauthd_runpath" ]; then
|
2004-05-12 18:12:11 +02:00
|
|
|
pidfile="%%SASLAUTHD_RUNPATH%%/${name}.pid"
|
2004-03-31 18:32:17 +02:00
|
|
|
else
|
|
|
|
pidfile="${saslauthd_runpath}/${name}.pid"
|
2004-06-11 17:54:34 +02:00
|
|
|
command_args="-m ${saslauthd_runpath}"
|
2004-03-31 18:32:17 +02:00
|
|
|
fi
|
|
|
|
|
2003-08-28 19:44:28 +02:00
|
|
|
run_rc_command "$1"
|