summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlayman <layman@localhost>2018-01-21 15:10:05 +0000
committerlayman <layman@localhost>2018-01-21 15:10:05 +0000
commit95353eb4b263ca9751df3d7f8f84e3ac3c6f8e36 (patch)
treef4fec1f854fc9745f25e35e2a71a7d2a9c05a6d7 /net-analyzer/longview/files/longview
parentclean up repo, add linode-longview and rcm (diff)
downloadalexcepoi-95353eb4b263ca9751df3d7f8f84e3ac3c6f8e36.tar.gz
alexcepoi-95353eb4b263ca9751df3d7f8f84e3ac3c6f8e36.tar.bz2
alexcepoi-95353eb4b263ca9751df3d7f8f84e3ac3c6f8e36.zip
Add systemd unit for linode longview ebuild.
Diffstat (limited to 'net-analyzer/longview/files/longview')
-rw-r--r--net-analyzer/longview/files/longview23
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 $?
+}