mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
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 <dsh@vlink.ru> Approved by: maintainer
This commit is contained in:
parent
3662c512b5
commit
b9e1295155
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145954
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user