From b9e1295155c7935add044b68d5c972903b2ecae8 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 20 Oct 2005 17:13:49 +0000 Subject: Teach startup script about dspam_pidfile variable. We can't use /var/run/dspam.pid together with dspam_user="dspam" option (for example). PR: ports/87718 Submitted by: Denis Shaposhnikov Approved by: maintainer --- mail/dspam-devel/files/dspam-devel.sh.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mail/dspam-devel') diff --git a/mail/dspam-devel/files/dspam-devel.sh.in b/mail/dspam-devel/files/dspam-devel.sh.in index 0e9e61342b2c..1695560c4529 100644 --- a/mail/dspam-devel/files/dspam-devel.sh.in +++ b/mail/dspam-devel/files/dspam-devel.sh.in @@ -21,7 +21,6 @@ rcvar=`set_rcvar` command=%%PREFIX%%/bin/${name} command_args="--daemon > /dev/null 2>&1 &" -pidfile=/var/run/${name}.pid required_dirs=%%DSPAM_HOME%% required_files=%%PREFIX%%/etc/${name}.conf @@ -38,4 +37,6 @@ dspam_enable=${dspam_enable:-"NO"} #dspam_flags=${dspam_flags:-"--daemon &"} load_rc_config $name +pidfile=${dspam_pidfile:-/var/run/dspam.pid} + run_rc_command "$1" -- cgit v1.2.3