diff options
Diffstat (limited to 'testing/drizzle/drizzle.initd')
-rw-r--r-- | testing/drizzle/drizzle.initd | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/drizzle/drizzle.initd b/testing/drizzle/drizzle.initd new file mode 100644 index 0000000000..55bdd9bf21 --- /dev/null +++ b/testing/drizzle/drizzle.initd @@ -0,0 +1,29 @@ +#!/sbin/runscript + +# Sample init.d file for alpine linux. + +name=drizzle +daemon=/usr/sbin/$name + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting ${name}" + start-stop-daemon --start --quiet \ + --pidfile /var/run/${name}.pid \ + --chuid drizzle:drizzle \ + --exec ${daemon} + eend $? +} + +stop() { + ebegin "Stopping ${name}" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/$name.pid \ + --exec ${daemon} + eend $? +} + |