summaryrefslogtreecommitdiffstats
path: root/main/pingu/pingu.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-20 11:06:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-20 11:06:58 +0000
commit381e6e5378b0c1b1868444a4fe9984a190451e48 (patch)
tree8cade024ec2a02c15f005eea6c7d01aeb0f3851a /main/pingu/pingu.initd
parentc881395e1b29d7f9f260facb6a2835469845fe6f (diff)
downloadaports-381e6e5378b0c1b1868444a4fe9984a190451e48.tar.bz2
aports-381e6e5378b0c1b1868444a4fe9984a190451e48.tar.xz
main/pingu: add the missing pingu init.d
Diffstat (limited to 'main/pingu/pingu.initd')
-rw-r--r--main/pingu/pingu.initd25
1 files changed, 4 insertions, 21 deletions
diff --git a/main/pingu/pingu.initd b/main/pingu/pingu.initd
index 7f9518efc..6d1f07b23 100644
--- a/main/pingu/pingu.initd
+++ b/main/pingu/pingu.initd
@@ -1,28 +1,11 @@
#!/sbin/runscript
-# Sample init.d file for alpine linux.
-
-NAME=pingu
-DAEMON=/usr/sbin/$NAME
+description="MultiISP load balancing and failover"
+command=/usr/sbin/pingu
+command_args="-d"
+pidfile=/var/lib/pingu/pingu.pid
depend() {
need net
after firewall
}
-
-start() {
- ebegin "Starting ${NAME}"
- start-stop-daemon --start --quiet \
- --pidfile /var/run/${NAME}.pid \
- --exec ${DAEMON} -- -d
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${NAME}"
- start-stop-daemon --stop --quiet \
- --exec ${DAEMON} \
- --pidfile /var/run/${NAME}.pid
- eend $?
-}
-