mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
www/adguardhome: Add the pid file
This would allow external automation scripts to control the daemon.
This commit is contained in:
parent
2835b93705
commit
338fe91d38
@ -1,6 +1,7 @@
|
||||
PORTNAME= adguardhome
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.107.41
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
|
@ -26,10 +26,11 @@ load_rc_config $name
|
||||
: ${adguardhome_work_dir_data_old:=%%PREFIX%%/bin/data}
|
||||
|
||||
logfile="/var/log/${name}.log"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
|
||||
procname=%%PREFIX%%/bin/adguardhome
|
||||
command="/usr/sbin/daemon"
|
||||
command_args="-u ${adguardhome_user} -o ${logfile} -t ${name} %%PREFIX%%/bin/adguardhome -c ${adguardhome_config} -w ${adguardhome_work_dir}"
|
||||
command_args="-u ${adguardhome_user} -o ${logfile} -t ${name} -p ${pidfile} %%PREFIX%%/bin/adguardhome -c ${adguardhome_config} -w ${adguardhome_work_dir}"
|
||||
|
||||
start_precmd="${name}_prestart"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user