1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/mail/synonym/files/synonym.sh.in
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

42 lines
853 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: synonym
# REQUIRE: DAEMON
# BEFORE: mail
# KEYWORD: shutdown
#
# Define these synonym_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/synonym
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
synonym_enable=${synonym_enable-"NO"}
synonym_pidfile=${synonym_pidfile-"%%RUNDIR%%/synonym.pid"}
synonym_conffile=${synonym_conffile-"%%PREFIX%%/etc/synonym.conf"}
. /etc/rc.subr
name=synonym
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/${name}
load_rc_config ${name}
case "${synonym_flags}" in
*-c\ *)
echo "Warning: \$synonym_flags includes -c option." \
"Please use \$synonym_conffile instead."
;;
*)
synonym_flags="-c ${synonym_conffile} ${synonym_flags:--d}" ;;
esac
pidfile=${synonym_pidfile}
required_files=${synonym_conffile}
run_rc_command "$1"