diff options
Diffstat (limited to 'net-analyzer/longview/files/longview')
-rw-r--r-- | net-analyzer/longview/files/longview | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net-analyzer/longview/files/longview b/net-analyzer/longview/files/longview new file mode 100644 index 0000000..c12b71f --- /dev/null +++ b/net-analyzer/longview/files/longview @@ -0,0 +1,23 @@ +#!/sbin/openrc-run + +command="/opt/linode/longview/Linode/Longview.pl" +pidfile="/run/longview.pid" + +extra_started_commands="reload" +extra_stopped_commands="debug" + +depend() { + need net +} + +debug() { + ebegin "Starting ${RC_SVCNAME} (With Debug Flag)" + start-stop-daemon --start -p $pidfile --exec $command Debug + eend $? +} + +reload() { + ebegin "Reloading ${RC_SVCNAME}" + start-stop-daemon --signal HUP -p $pidfile + eend $? +} |