aboutsummaryrefslogtreecommitdiffstats
path: root/main/snmptt/snmptt.initd
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2013-02-14 13:21:08 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2013-02-14 13:21:08 +0000
commit5bb40e41350ef7bb5522ab6a71e5c9fcf8b406d8 (patch)
tree1ca1f9b968e03f6170c9125fe3f63d3bc7803fe9 /main/snmptt/snmptt.initd
parentd16b1c42cd4aeb8f7114486c4e9dc00059bf4b1d (diff)
downloadaports-5bb40e41350ef7bb5522ab6a71e5c9fcf8b406d8.tar.bz2
aports-5bb40e41350ef7bb5522ab6a71e5c9fcf8b406d8.tar.xz
main/snmptt: fix dependecies. Add init script
Diffstat (limited to 'main/snmptt/snmptt.initd')
-rw-r--r--main/snmptt/snmptt.initd25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/snmptt/snmptt.initd b/main/snmptt/snmptt.initd
new file mode 100644
index 0000000000..1048ebeb37
--- /dev/null
+++ b/main/snmptt/snmptt.initd
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+
+DAEMON=/usr/bin/${SVCNAME}
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --quiet \
+ --pidfile /var/run/${SVCNAME}.pid \
+ --exec ${DAEMON} -- ${OPTS} --daemon
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet \
+ --exec ${DAEMON} \
+ --pidfile /var/run/${SVCNAME}.pid \
+ eend $?
+}
+