summaryrefslogtreecommitdiff
path: root/databases/courier-authlib-pgsql/files/courier-authdaemond.sh
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2005-04-20 06:16:18 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2005-04-20 06:16:18 +0000
commit8673c7ec800a8bcc6da14c506081a3cb76e2b8ea (patch)
treead3f495c08f0cc331b6958d319f699d021175c19 /databases/courier-authlib-pgsql/files/courier-authdaemond.sh
parentFix plist problems. (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_5_4_0'.release/5.4.0
Notes
Notes: svn path=/head/; revision=133724 svn path=/tags/RELEASE_5_4_0/; revision=133725; tag=release/5.4.0
Diffstat (limited to 'databases/courier-authlib-pgsql/files/courier-authdaemond.sh')
-rw-r--r--databases/courier-authlib-pgsql/files/courier-authdaemond.sh60
1 files changed, 0 insertions, 60 deletions
diff --git a/databases/courier-authlib-pgsql/files/courier-authdaemond.sh b/databases/courier-authlib-pgsql/files/courier-authdaemond.sh
deleted file mode 100644
index c13b5d921c40..000000000000
--- a/databases/courier-authlib-pgsql/files/courier-authdaemond.sh
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-#
-# An rc.subr-style startup script for courier-authdaemond service.
-
-# PROVIDE: courier_authdaemond
-# REQUIRE: LOGIN
-# KEYWORD: FreeBSD shutdown
-
-# Define these courier_authdaemond_* variables in one of these files:
-# /etc/rc.conf
-# /etc/rc.conf.local
-# /etc/rc.conf.d/courier_authdaemond
-#
-# DO NOT CHANGE THESE DEFAULT VALUES HERE
-
-courier_authdaemond_enable=${courier_authdaemond_enable-"NO"}
-
-. %%RC_SUBR%%
-
-name="courier_authdaemond"
-rcvar=`set_rcvar`
-command="%%PREFIX%%/sbin/authdaemond"
-
-start_cmd="authdaemond_cmd start"
-stop_cmd="authdaemond_cmd stop"
-restart_cmd="authdaemond_cmd stop && authdaemond_cmd start"
-rundir=/var/run/authdaemond
-pidfile="${rundir}/pid"
-procname="%%PREFIX%%/sbin/courierlogger"
-
-load_rc_config $name
-
-authdaemond_cmd () {
- case $1 in
- start)
- if [ ! -d "${rundir}" ] ; then
- mkdir -p -m 0750 "${rundir}" && chown %%MAILUSER%%:%%MAILGROUP%% "${rundir}"
- if [ $? -ne 0 ] ; then
- echo "creating ${rundir} with the correct permissions was not possible!"
- return 1
- fi
- fi
- echo "Starting ${name}."
- ${command} start
- ;;
- stop)
- echo "Stopping ${name}."
- ${command} stop
- if [ $? -eq 0 ] ; then
- [ -f "${pidfile}" ] && rm -f "$pidfile"
- [ -f "${pidfile}.lock" ] && rm -f "${pidfile}.lock"
- [ -S "${rundir}/socket" ] && rm -f "${rundir}/socket"
- return 0
- fi
- ;;
- esac
-}
-
-run_rc_command "$1"
-