mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-24 07:52:30 +00:00
30 lines
473 B
Plaintext
30 lines
473 B
Plaintext
#!/sbin/runscript
|
|
|
|
# Sample init.d file for alpine linux.
|
|
|
|
name=
|
|
daemon=/usr/sbin/$name
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting ${name}"
|
|
start-stop-daemon --start --quiet \
|
|
--pidfile /var/run/${name}.pid \
|
|
--chuid ${sample_user}:${sample_group} \
|
|
--exec ${daemon} -- ${sample_opts}
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping ${name}"
|
|
start-stop-daemon --stop --quiet \
|
|
--pidfile /var/run/$name.pid \
|
|
--exec ${daemon}
|
|
eend $?
|
|
}
|
|
|