Date: Mon, 22 Apr 2024 12:09:46 GMT From: Rodrigo Osorio <rodrigo@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: e6531f199266 - main - net-mgmt/smokeping: Made pidfile configurable in the rc script Message-ID: <202404221209.43MC9ki0053404@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by rodrigo: URL: https://cgit.FreeBSD.org/ports/commit/?id=e6531f199266caf266d67b45c983d16bcb9e7328 commit e6531f199266caf266d67b45c983d16bcb9e7328 Author: Rodrigo Osorio <rodrigo@FreeBSD.org> AuthorDate: 2024-04-22 11:44:20 +0000 Commit: Rodrigo Osorio <rodrigo@FreeBSD.org> CommitDate: 2024-04-22 12:09:06 +0000 net-mgmt/smokeping: Made pidfile configurable in the rc script From this version if you use a custom pifile location configured in /etc/rc.conf with the smokeping_pidfile variable you don't need to update your smokeping rc.d file manually after each port upgrade anymore. The default behavior remains unchanged. Reported by: zi (private mail) --- net-mgmt/smokeping/Makefile | 2 +- net-mgmt/smokeping/files/smokeping.in | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/net-mgmt/smokeping/Makefile b/net-mgmt/smokeping/Makefile index 595446a054c6..d59273de8337 100644 --- a/net-mgmt/smokeping/Makefile +++ b/net-mgmt/smokeping/Makefile @@ -1,6 +1,6 @@ PORTNAME= smokeping PORTVERSION= 2.8.2 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= net-mgmt www MASTER_SITES= https://oss.oetiker.ch/smokeping/pub/ diff --git a/net-mgmt/smokeping/files/smokeping.in b/net-mgmt/smokeping/files/smokeping.in index 54162f708760..d125d643e62e 100644 --- a/net-mgmt/smokeping/files/smokeping.in +++ b/net-mgmt/smokeping/files/smokeping.in @@ -29,8 +29,9 @@ reload_cmd="smokeping_reload" stop_cmd="smokeping_stop" : ${smokeping_enable:=NO} -# pidfile is hardcoded in Smokeping.pm, not configurable -smokeping_pidfile="%%PREFIX%%/var/smokeping/pid" +# piddir is configured in %%PREFIX%%/etc/smokeping/config +# pid file name is "pid" and harcoded in Smokeping.pm, not configurable +: ${smokeping_pidfile="%%PREFIX%%/var/smokeping/pid"} : ${smokeping_logfile=/var/log/smokeping.log} : ${smokeping_user="%%USERS%%"} : ${smokeping_group="%%GROUPS%%"}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202404221209.43MC9ki0053404>