[Bug 198895] net-mgmt/smokeping: hardcoded pidfile
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Mar 25 10:10:32 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198895
Bug ID: 198895
Summary: net-mgmt/smokeping: hardcoded pidfile
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: rodrigo at FreeBSD.org
Reporter: buchtajz at borsice.net
Assignee: rodrigo at FreeBSD.org
Flags: maintainer-feedback?(rodrigo at FreeBSD.org)
The comment in startup script is not completely true.
Smokeping pidfile is configurable via piddir variable in smokeping config.
So, when someone change this, the script will not work.
/usr/local/etc/rc.d/smokeping :
# pidfile is hardcoded in Smokeping.pm, not configurable
smokeping_pidfile="/storage/smokeping/pid"
/usr/local/etc/smokeping/config :
piddir = /any/dir/for/pidfile
Instead hardcoded smokeping_pidfile variable, maybe better using
: ${smokeping_pidfile="%%PREFIX%%/var/smokeping/pid"}
or using "smokeping variable"
: ${smokeping_piddir="%%PREFIX%%/var/smokeping"}
smokeping_pidfile="${smokeping_piddir}/pid"
Regards
buchtajz
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list