Date: Wed, 22 Nov 2023 20:55:05 GMT From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 338fe91d38d3 - main - www/adguardhome: Add the pid file Message-ID: <202311222055.3AMKt5cP086800@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=338fe91d38d3acc182d3884432e9cc1e90e9f953 commit 338fe91d38d3acc182d3884432e9cc1e90e9f953 Author: Alexander Leidinger <Alexander@Leidinger.net> AuthorDate: 2023-11-22 20:51:58 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-11-22 20:55:04 +0000 www/adguardhome: Add the pid file This would allow external automation scripts to control the daemon. --- www/adguardhome/Makefile | 1 + www/adguardhome/files/adguardhome.in | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/www/adguardhome/Makefile b/www/adguardhome/Makefile index f43f2cc6c2a2..2cde3e55d167 100644 --- a/www/adguardhome/Makefile +++ b/www/adguardhome/Makefile @@ -1,6 +1,7 @@ PORTNAME= adguardhome DISTVERSIONPREFIX= v DISTVERSION= 0.107.41 +PORTREVISION= 1 CATEGORIES= www MAINTAINER= yuri@FreeBSD.org diff --git a/www/adguardhome/files/adguardhome.in b/www/adguardhome/files/adguardhome.in index 474e2c8a83fa..f69f1df46889 100644 --- a/www/adguardhome/files/adguardhome.in +++ b/www/adguardhome/files/adguardhome.in @@ -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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311222055.3AMKt5cP086800>