diff options
Diffstat (limited to 'community/thttpd/thttpd.initd')
-rw-r--r-- | community/thttpd/thttpd.initd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/community/thttpd/thttpd.initd b/community/thttpd/thttpd.initd new file mode 100644 index 0000000000..5ba5247b6d --- /dev/null +++ b/community/thttpd/thttpd.initd @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# init.d file for thttpd + +name=thttpd +daemon=/usr/sbin/$name + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting ${name}" + start-stop-daemon --start --quiet \ + --pidfile /var/run/${name}.pid \ + --exec ${daemon} -- ${sample_opts} + eend $? +} + +stop() { + ebegin "Stopping ${name}" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/$name.pid \ + --exec ${daemon} + eend $? +} + |