aboutsummaryrefslogtreecommitdiffstats
path: root/community/vsftpd/vsftpd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/vsftpd/vsftpd.initd')
-rw-r--r--community/vsftpd/vsftpd.initd26
1 files changed, 26 insertions, 0 deletions
diff --git a/community/vsftpd/vsftpd.initd b/community/vsftpd/vsftpd.initd
new file mode 100644
index 0000000000..b040d6305c
--- /dev/null
+++ b/community/vsftpd/vsftpd.initd
@@ -0,0 +1,26 @@
+#!/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 $?
+}
+