summaryrefslogtreecommitdiffstats
path: root/package/vsftpd/vsftpd-init
diff options
context:
space:
mode:
authorWade Berrier <wberrier@gmail.com>2008-10-06 22:46:41 +0000
committerWade Berrier <wberrier@gmail.com>2008-10-06 22:46:41 +0000
commitd6b556670c7a96f341d2efc2c24fca1d0a1fe8a1 (patch)
tree722edc926e8719241f23378c635de0a0b51a1033 /package/vsftpd/vsftpd-init
parentb8508d758e8212df8e517089bccad3302966ed29 (diff)
downloadbuildroot-novena-d6b556670c7a96f341d2efc2c24fca1d0a1fe8a1.tar.gz
buildroot-novena-d6b556670c7a96f341d2efc2c24fca1d0a1fe8a1.zip
vsftpd:
-Patch to build against newer kernel headers ( vsftpd-2.0.7-uclibc.patch , based on idea from http://www.bitshrine.org/gpp/vsftpd-2.0.5-syscall2.patch ) -new basic init script (no config yet) -Update version (2.0.7) -openssl fixes -cleanup makefile deps so it doesn't get built when things don't change
Diffstat (limited to 'package/vsftpd/vsftpd-init')
-rwxr-xr-xpackage/vsftpd/vsftpd-init33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/vsftpd/vsftpd-init b/package/vsftpd/vsftpd-init
new file mode 100755
index 000000000..6048907f6
--- /dev/null
+++ b/package/vsftpd/vsftpd-init
@@ -0,0 +1,33 @@
+#! /bin/sh
+
+set -e
+
+DESC="vsftpd"
+NAME=vsftpd
+DAEMON=/usr/sbin/$NAME
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ start-stop-daemon -S -b -x $NAME
+ echo "OK"
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+ start-stop-daemon -K -x $NAME
+ echo "OK"
+ ;;
+ restart|force-reload)
+ echo "Restarting $DESC: "
+ $0 stop
+ sleep 1
+ $0 start
+ echo ""
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0