diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-04-14 14:16:45 +0300 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-05-11 03:52:27 +0000 |
commit | 246bdb87ac773d726decfa686edf132f2a3c268a (patch) | |
tree | 9ee21a94dcc81b0681fc6cd538974fbdd83e18eb /testing/proftpd/proftpd.initd | |
parent | 5fafd50b76e9a7302e9a576c3f6c654fe370ac42 (diff) | |
download | aports-246bdb87ac773d726decfa686edf132f2a3c268a.tar.bz2 aports-246bdb87ac773d726decfa686edf132f2a3c268a.tar.xz |
testing/proftpd: move from unmaintained
upgrade to 1.3.6
take maintainership
Diffstat (limited to 'testing/proftpd/proftpd.initd')
-rw-r--r-- | testing/proftpd/proftpd.initd | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/proftpd/proftpd.initd b/testing/proftpd/proftpd.initd new file mode 100644 index 0000000000..05670abc71 --- /dev/null +++ b/testing/proftpd/proftpd.initd @@ -0,0 +1,35 @@ +#!/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 $? +} |