mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-27 09:21:41 +02:00
29 lines
438 B
Plaintext
29 lines
438 B
Plaintext
#!/sbin/runscript
|
|
|
|
# Sample init.d file for alpine linux.
|
|
|
|
name=proftpd
|
|
daemon=/usr/sbin/proftpd
|
|
|
|
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 $?
|
|
}
|
|
|