package/zic: bump version to 2015e
[buildroot-gz.git] / package / proftpd / S50proftpd
blobdd6cad2e5310b06930a2789c580d27dfda70cd7e
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 echo -n "Starting ProFTPD: "
12 $DAEMON
13 if [ $? != 0 ]; then
14 echo "FAILED"
15 exit 1
16 else
17 echo "done"
21 stop() {
22 echo -n "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