Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2005 16:06:02 +0400 (MSD)
From:      Denis Shaposhnikov <dsh@vlink.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dsh@neva.vlink.ru
Subject:   ports/87718: Update port: mail/dspam-devel (add pidfile configuration)
Message-ID:  <200510201206.j9KC62qb032099@neva.vlink.ru>
Resent-Message-ID: <200510201210.j9KCAIIA001880@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         87718
>Category:       ports
>Synopsis:       Update port: mail/dspam-devel (add pidfile configuration)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 20 12:10:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Denis Shaposhnikov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD neva.vlink.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #21: Sun Aug 14 15:59:53 MSD 2005 dsh@neva.vlink.ru:/var/FreeBSD/obj/var/FreeBSD/src/sys/NEVA i386


	
>Description:

Teach startup script about dspam_pidfile variable. We can't use
/var/run/dspam.pid together with dspam_user="dspam" option (for example).

>How-To-Repeat:

Add dspam_user="nonroot" to /etc/rc.conf and try to start/stop
dspam-devel.sh.

>Fix:

diff -Nru dspam-devel.orig/files/dspam-devel.sh.in dspam-devel/files/dspam-devel.sh.in
--- dspam-devel.orig/files/dspam-devel.sh.in	Thu Oct 20 16:01:19 2005
+++ dspam-devel/files/dspam-devel.sh.in	Thu Oct 20 15:30:20 2005
@@ -21,7 +21,6 @@
 
 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_flags=${dspam_flags:-"--daemon &"}
 
 load_rc_config $name
+pidfile=${dspam_pidfile:-/var/run/dspam.pid}
+
 run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510201206.j9KC62qb032099>