1
0
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:
Alexander Leidinger 2023-11-22 12:51:58 -08:00 committed by Yuri Victorovich
parent 2835b93705
commit 338fe91d38
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
PORTNAME= adguardhome
DISTVERSIONPREFIX= v
DISTVERSION= 0.107.41
PORTREVISION= 1
CATEGORIES= www
MAINTAINER= yuri@FreeBSD.org

View File

@ -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"