1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-02 16:58:25 +02:00
openwrt-xburst/obsolete-buildroot/sources/openwrt/ipkg/vsftpd/root/etc/init.d/vsftpd
mbm 68b12f212b nico's buildroot-20040827-vsftpd.patch.txt
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@150 3c298f89-4303-0410-b956-a3cf2f4a3e73
2004-08-27 01:22:08 +00:00

20 lines
325 B
Bash

#!/bin/sh
case $1 in
start)
[ -d /var/run/vsftpd ] || mkdir -p /var/run/vsftpd
/usr/sbin/vsftpd
;;
stop)
pid=$(pidof vsftpd)
x=$$ # exclude our pid since we have the same name
pid=$(echo $pid | sed -e "s/$x//")
[ -n "$pid" ] && kill -TERM $pid
;;
*)
echo "usage: $0 (start|stop)"
exit 1
esac
exit $?