From 5b11fa3aaf8a3d8fa25fe30ea370f8a8f8dfbf3d Mon Sep 17 00:00:00 2001 From: z3bra Date: Wed, 22 Oct 2014 17:35:04 +0200 Subject: testing/thttpd: new aport --- testing/thttpd/thttpd.initd | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 testing/thttpd/thttpd.initd (limited to 'testing/thttpd/thttpd.initd') diff --git a/testing/thttpd/thttpd.initd b/testing/thttpd/thttpd.initd new file mode 100644 index 00000000000..bd869489ee1 --- /dev/null +++ b/testing/thttpd/thttpd.initd @@ -0,0 +1,28 @@ +#!/sbin/runscript + +# 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 $? +} + -- cgit v1.2.3