diff options
Diffstat (limited to 'net-analyzer/snmptt/files/snmptt.initd')
-rw-r--r-- | net-analyzer/snmptt/files/snmptt.initd | 20 |
1 files changed, 20 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..1997851253bd --- /dev/null +++ b/net-analyzer/snmptt/files/snmptt.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} |