python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / proftpd / S50proftpd
blob336680a45665f6c6e6c67fcf3d273c674c9a7b08
1 #!/bin/sh
3 DAEMON=/usr/sbin/proftpd
4 trap "" HUP
5 trap "" TERM
6 test -f $DAEMON || exit 0
7 [ ! -d /var/run/proftpd ] && mkdir /var/run/proftpd
8 [ ! -f /var/log/wtmp ] && touch /var/log/wtmp
10 start() {
11 printf "Starting ProFTPD: "
12 $DAEMON
13 if [ $? != 0 ]; then
14 echo "FAILED"
15 exit 1
16 else
17 echo "done"
21 stop() {
22 printf "Stopping ProFTPD: "
23 killall proftpd
24 echo "done"
27 case "$1" in
28 start)
29 start
32 stop)
33 stop
36 restart)
37 stop
38 start
42 echo "Usage: /etc/init.d/S50proftpd {start|stop|restart}"
43 exit 1
45 esac
47 exit 0