projects
/
librecmc
/
librecmc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0152e4ec80188668b55e63b5c18f45c9648350b2
[librecmc/librecmc.git]
/
obsolete-buildroot
/
sources
/
openwrt
/
ipkg
/
vsftpd
/
root
/
etc
/
init.d
/
vsftpd
1
#!/bin/sh
2
3
case $1 in
4
start)
5
[ -d /var/run/vsftpd ] || mkdir -p /var/run/vsftpd
6
/usr/sbin/vsftpd
7
;;
8
stop)
9
pid=$(pidof vsftpd)
10
x=$$ # exclude our pid since we have the same name
11
pid=$(echo $pid | sed -e "s/$x//")
12
[ -n "$pid" ] && kill -TERM $pid
13
;;
14
*)
15
echo "usage: $0 (start|stop)"
16
exit 1
17
esac
18
19
exit $?