1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/testing/sthttpd/thttpd.initd
Francesco Colista de8633236f testing/sthttpd: new aport
Fixes #12657

This is an initial aport that needs test before being promoted
to community
2021-05-12 08:31:38 +00:00

27 lines
421 B
Text

#!/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 $?
}