mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-15 08:13:34 +08:00
d6b556670c
-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
34 lines
429 B
Bash
Executable File
34 lines
429 B
Bash
Executable File
#! /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
|