diff options
Diffstat (limited to 'net-analyzer/snmptt/files/snmptt.initd-r1')
-rw-r--r-- | net-analyzer/snmptt/files/snmptt.initd-r1 | 19 |
1 files changed, 19 insertions, 0 deletions
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 +} |