diff options
Diffstat (limited to 'main/pingu/pingu.initd')
-rw-r--r-- | main/pingu/pingu.initd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/main/pingu/pingu.initd b/main/pingu/pingu.initd new file mode 100644 index 0000000000..39301f80e4 --- /dev/null +++ b/main/pingu/pingu.initd @@ -0,0 +1,27 @@ +#!/sbin/runscript + +# Sample init.d file for alpine linux. + +NAME=pingu +DAEMON=/usr/bin/$NAME + +depend() { + need net +} + +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 $? +} + |