freebsd-ports/security/cyrus-sasl2-saslauthd/files/saslauthd.sh.in

39 lines
849 B
Bash
Raw Normal View History

#!/bin/sh
#
2005-02-10 20:32:10 +01:00
# $FreeBSD$
#
2003-08-28 19:44:28 +02:00
# PROVIDE: saslauthd
# REQUIRE: DAEMON
# BEFORE: mail imap
# KEYWORD: shutdown
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
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
saslauthd_enable=${saslauthd_enable:-"NO"} # Enable saslauthd
saslauthd_flags=${saslauthd_flags:-"-a pam"} # Flags to saslauthd program
#saslauthd_runpath="%%SASLAUTHD_RUNPATH%%" # Working directory
#saslauthd_program="%%PREFIX%%/sbin/saslauthd" # Location of saslauthd
2003-08-28 19:44:28 +02:00
. %%RC_SUBR%%
2003-08-28 19:44:28 +02:00
name="saslauthd"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/${name}"
2003-08-28 19:44:28 +02:00
load_rc_config $name
if [ -z "$saslauthd_runpath" ]; then
pidfile="%%SASLAUTHD_RUNPATH%%/${name}.pid"
else
pidfile="${saslauthd_runpath}/${name}.pid"
command_args="-m ${saslauthd_runpath}"
fi
2003-08-28 19:44:28 +02:00
run_rc_command "$1"