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/snmptt/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/snmptt/files')
-rw-r--r-- | net-analyzer/snmptt/files/snmptt.initd | 19 | ||||
-rw-r--r-- | net-analyzer/snmptt/files/snmptt.initd-r1 | 19 |
2 files changed, 38 insertions, 0 deletions
diff --git a/net-analyzer/snmptt/files/snmptt.initd b/net-analyzer/snmptt/files/snmptt.initd new file mode 100644 index 000000000000..76b67a2b1304 --- /dev/null +++ b/net-analyzer/snmptt/files/snmptt.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net snmptrapd +} + +start() { + ebegin "Starting snmptt" + start-stop-daemon --start --pidfile /var/run/snmptt.pid --exec /usr/sbin/snmptt + eend +} + +stop() { + ebegin "Stopping snmptt" + start-stop-daemon --stop --pidfile /var/run/snmptt.pid + eend +} diff --git a/net-analyzer/snmptt/files/snmptt.initd-r1 b/net-analyzer/snmptt/files/snmptt.initd-r1 new file mode 100644 index 000000000000..02b8fea24895 --- /dev/null +++ b/net-analyzer/snmptt/files/snmptt.initd-r1 @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need snmptrapd +} + +start() { + ebegin "Starting snmptt" + start-stop-daemon --start --pidfile /run/snmptt.pid --exec /usr/sbin/snmptt + eend +} + +stop() { + ebegin "Stopping snmptt" + start-stop-daemon --stop --pidfile /run/snmptt.pid + eend +} |