diff options
Diffstat (limited to 'testing/proftpd/proftpd.initd')
-rw-r--r-- | testing/proftpd/proftpd.initd | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/proftpd/proftpd.initd b/testing/proftpd/proftpd.initd new file mode 100644 index 0000000000..30aae779c1 --- /dev/null +++ b/testing/proftpd/proftpd.initd @@ -0,0 +1,29 @@ +#!/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 \ + --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 $? +} + |