diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/symon/files/symon-init.d |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/symon/files/symon-init.d')
-rw-r--r-- | net-analyzer/symon/files/symon-init.d | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/net-analyzer/symon/files/symon-init.d b/net-analyzer/symon/files/symon-init.d new file mode 100644 index 000000000000..3d48b793e597 --- /dev/null +++ b/net-analyzer/symon/files/symon-init.d @@ -0,0 +1,32 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the 2-clause BSD license + +extra_started_commands="reload" + +depend() { + after bootmisc + need localmount net + use logger +} + +reload() { + ebegin "Reloading symon" + start-stop-daemon \ + --pidfile /run/symon.pid \ + --exec /usr/sbin/symon \ + --signal HUP + eend $? +} + +start() { + ebegin "Starting symon" + start-stop-daemon --start --exec /usr/sbin/symon -- -u + eend $? +} + +stop() { + ebegin "Stopping symon" + start-stop-daemon --stop --pidfile /run/symon.pid + eend $? +} |