![Thomas Petazzoni](/assets/img/avatar_default.png)
This commit changes the vsftpd package to use the <pkg>_INSTALL_INIT_SYSV mechanism to install its init script, and renames the init script in the Buildroot source tree to match how it's named on the target. Also, the init script is now installed unconditionally, as is done in most packages. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
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
|