1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/testing/proftpd/proftpd.initd
Valery Kartel 246bdb87ac testing/proftpd: move from unmaintained
upgrade to 1.3.6
take maintainership
2017-05-11 03:52:27 +00:00

35 lines
684 B
Text

#!/sbin/openrc-run
name="ProFTPD"
description="ProFTPD FTP Server"
pidfile="/run/proftpd/proftpd.pid"
command="/usr/sbin/proftpd"
command_args="-n"
command_background="yes"
required_files="/etc/proftpd/proftpd.conf"
extra_commands="checkconfig"
extra_started_commands="reload"
description_checkconfig="Check configuration"
description_reload="Reload configuration"
depend() {
need net
use logger dns
after firewall
}
checkconfig() {
$command -t
}
start_pre() {
checkpath --directory ${pidfile%/*}
checkconfig >/dev/null 2>&1
}
reload() {
ebegin "Reloading ${name:-$RC_SVCNAME}"
checkconfig >/dev/null 2>&1 && start-stop-daemon --signal HUP --pidfile $pidfile
eend $?
}