summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Osorio <rodrigo@FreeBSD.org>2024-04-22 13:44:20 +0200
committerRodrigo Osorio <rodrigo@FreeBSD.org>2024-04-22 14:09:06 +0200
commite6531f199266caf266d67b45c983d16bcb9e7328 (patch)
tree74a45bbe27691c1e1015415de50b1d64d5ac3b46
parentnet/storj: update Storj programs to version 1.99.3 (diff)
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)
-rw-r--r--net-mgmt/smokeping/Makefile2
-rw-r--r--net-mgmt/smokeping/files/smokeping.in5
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%%"}