port lots of init scripts over to rc.common (more to come)
[packages.git] / net / vsftpd / files / vsftpd.init
index 4d4f4f2..ce41110 100644 (file)
@@ -1,15 +1,12 @@
-#!/bin/sh
+#!/bin/sh /etc/rc.common
 
 RUN_D=/var/run/vsftpd
 
-case $1 in
- start)
-  [ -d $RUN_D ] || mkdir -p $RUN_D
-  vsftpd
-  ;;
- *)
-  echo "usage: $0 (start)"
-  exit 1
-esac
+start() {
+       [ -d $RUN_D ] || mkdir -p $RUN_D
+       vsftpd
+}
 
-exit $?
+stop() {
+       killall vsftpd
+}