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

45 lines
1.1 KiB
Bash
Raw Normal View History

#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/security/cyrus-sasl2-saslauthd/files/Attic/saslauthd.sh,v 1.6 2004-06-11 15:49:48 ume Exp $
#
2003-08-28 19:44:28 +02:00
# PROVIDE: saslauthd
# REQUIRE: DAEMON
# BEFORE: mail imap
# KEYWORD: FreeBSD shutdown
#
# NOTE for FreeBSD 5.0+:
# If you want this script to start with the base rc scripts
# move saslauthd.sh to /etc/rc.d/saslauthd
2003-08-28 19:44:28 +02:00
prefix=%%PREFIX%%
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
2003-08-28 19:44:28 +02:00
#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"