1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/community/vsftpd/vsftpd.initd

26 lines
433 B
Text

#!/sbin/openrc-run
NAME=vsftpd
DAEMON=/usr/sbin/$NAME
depend() {
need net
after firewall
}
start() {
ebegin "Starting ${SVCNAME}"
start-stop-daemon --start --quiet --background \
--make-pidfile --pidfile /var/run/${SVCNAME}.pid \
--exec ${DAEMON} -- ${OPTS}
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop --quiet \
--exec ${DAEMON} \
--pidfile /var/run/${SVCNAME}.pid \
eend $?
}