aboutsummaryrefslogtreecommitdiffstats
path: root/testing/miniupnpd/miniupnpd.initd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-08-14 08:58:45 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2013-08-14 08:58:45 +0000
commit292e6f5563db1ff608e6ddc2d416705299d0086a (patch)
tree6052517d9efb18e502d9f6d8a95599f235ba0192 /testing/miniupnpd/miniupnpd.initd
parentdf44aac48500f0dedbebb6fc7f3ae2c6ea0b5ed5 (diff)
downloadaports-292e6f5563db1ff608e6ddc2d416705299d0086a.tar.bz2
aports-292e6f5563db1ff608e6ddc2d416705299d0086a.tar.xz
testing/miniupnpd: new aport
Diffstat (limited to 'testing/miniupnpd/miniupnpd.initd')
-rw-r--r--testing/miniupnpd/miniupnpd.initd23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/miniupnpd/miniupnpd.initd b/testing/miniupnpd/miniupnpd.initd
new file mode 100644
index 0000000000..cc67646ed1
--- /dev/null
+++ b/testing/miniupnpd/miniupnpd.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-init.d,v 1.3 2011/10/17 12:03:01 gurligebis Exp $
+
+depend() {
+ need net iptables
+ use minissdpd
+}
+
+start() {
+ ebegin "Starting miniupnpd"
+ /etc/miniupnpd/iptables_init.sh
+ start-stop-daemon --start --pidfile /var/run/miniupnpd.pid --exec /usr/sbin/miniupnpd -- ${ARGS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping miniupnpd"
+ start-stop-daemon --stop --pidfile /var/run/miniupnpd.pid
+ eend $?
+ /etc/miniupnpd/iptables_removeall.sh
+}