databases/webdis: fix rc script

Pass -P to daemon(8), else the 'stop' command will just kill a child
process that will promptly be restarted.
This commit is contained in:
Jimmy Olgeni 2022-02-27 13:12:19 +01:00
parent 229dd178ff
commit f2c3b50793
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= webdis
DISTVERSION= 0.1.20
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= databases
MAINTAINER= olgeni@FreeBSD.org

View File

@ -30,7 +30,7 @@ start_precmd=webdis_start_precmd
pidfile="/var/run/${name}.pid"
procname="%%PREFIX%%/bin/${name}"
command=/usr/sbin/daemon
command_args="-r -f -c -p ${pidfile} ${procname} ${webdis_config}"
command_args="-r -f -c -P ${pidfile} ${procname} ${webdis_config}"
webdis_start_precmd()
{