Index: net-mgmt/librenms/Makefile =================================================================== --- net-mgmt/librenms/Makefile (revision 535987) +++ net-mgmt/librenms/Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= librenms PORTVERSION= 1.63 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= net-mgmt MASTER_SITES= LOCAL/dvl:vendor Index: net-mgmt/librenms/files/librenms.in =================================================================== --- net-mgmt/librenms/files/librenms.in (revision 535987) +++ net-mgmt/librenms/files/librenms.in (working copy) @@ -17,6 +17,8 @@ # Default: %%GROUP%% # librenms_pid: Path of the pid file. # Default /var/run/librenms/librenms.pid +# librenms_logflags: Logflags passed to daemon(8), overwrite this to use syslog +# Default "-o /var/log/librenms/librenms-service.log" # # Contributed by: Dries Michiels (driesm.michiels@gmail.com) @@ -31,6 +33,7 @@ : ${librenms_user:="%%USER%%"} : ${librenms_group:="%%GROUP%%"} : ${librenms_pid:="/var/run/librenms/librenms.pid"} +: ${librenms_logflags:="-o /var/log/$name/$name-service.log"} pidfile="$librenms_pid" procname="%%PYTHON%%" @@ -44,6 +47,6 @@ [ -f /var/log/$name/$name.log ] || install -g $librenms_group -o $librenms_user -m 644 /dev/null /var/log/$name/$name.log } -command_args="-T $name -o /var/log/$name/$name-service.log -p $pidfile $procname %%WWWDIR%%/librenms-service.py" +command_args="$librenms_logflags -p $pidfile $procname %%WWWDIR%%/librenms-service.py" run_rc_command "$1"