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