freebsd-ports/security/cyrus-sasl2-saslauthd/files/saslauthd.sh
Hajimu UMEMOTO 0bfa2a5bc6 the start/stop scripts failed when booting on 5.x machines
Submitted by:	Barry Pederson <bp@barryp.org>
2003-10-01 17:56:06 +00:00

36 lines
934 B
Bash

#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/security/cyrus-sasl2-saslauthd/files/Attic/saslauthd.sh,v 1.3 2003-10-01 17:56:06 ume Exp $
#
# 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
prefix=%%PREFIX%%
# 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
#
[ -z "$saslauthd_enable" ] && saslauthd_enable="YES" # Enable saslauthd
#saslauthd_program="${prefix}/sbin/saslauthd" # Location of saslauthd
[ -z "$saslauthd_flags" ] && saslauthd_flags="-a pam" # Flags to saslauthd program
. %%RC_SUBR%%
name="saslauthd"
rcvar=`set_rcvar`
command="${prefix}/sbin/${name}"
pidfile="/var/state/${name}/${name}.pid"
load_rc_config $name
run_rc_command "$1"