diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-04-16 10:53:55 +0000 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-19 02:45:27 +0200 |
| commit | 21adc5d117329b11fa42da2f62edce3cad8719ff (patch) | |
| tree | 369b8b36964abec08428032c3162423275160c7d /meta-networking/recipes-daemons/vsftpd/files/init | |
| parent | b2aa32edd3f922514938f895354ef6719bf56681 (diff) | |
| download | meta-openembedded-21adc5d117329b11fa42da2f62edce3cad8719ff.tar.gz | |
vsftpd: move from meta-oe to meta-networking and tweak
* Fix stripped file QA warning
* Add proper headers to patches (and split makefile.patch into two
parts, one of which may be upstreamable)
* Use PV in SRC_URI instead of hardcoded version
* Move SRC_URI checksums up next to SRC_URI
* Set SUMMARY instead of DESCRIPTION
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons/vsftpd/files/init')
| -rwxr-xr-x | meta-networking/recipes-daemons/vsftpd/files/init | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/vsftpd/files/init b/meta-networking/recipes-daemons/vsftpd/files/init new file mode 100755 index 0000000000..d0ec010dc7 --- /dev/null +++ b/meta-networking/recipes-daemons/vsftpd/files/init | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | DAEMON=/usr/sbin/vsftpd | ||
| 3 | NAME=vsftpd | ||
| 4 | DESC="FTP Server" | ||
| 5 | ARGS="" | ||
| 6 | FTPDIR=/var/lib/ftp | ||
| 7 | |||
| 8 | test -f $DAEMON || exit 0 | ||
| 9 | |||
| 10 | set -e | ||
| 11 | |||
| 12 | case "$1" in | ||
| 13 | start) | ||
| 14 | echo -n "* starting $DESC: $NAME... " | ||
| 15 | if ! test -d $FTPDIR; then | ||
| 16 | mkdir -p $FTPDIR/in | ||
| 17 | chown ftp $FTPDIR -R | ||
| 18 | chmod a-w $FTPDIR | ||
| 19 | chmod u+w $FTPDIR/in | ||
| 20 | fi | ||
| 21 | start-stop-daemon -S -b -x $DAEMON -- $ARGS | ||
| 22 | echo "done." | ||
| 23 | ;; | ||
| 24 | stop) | ||
| 25 | echo -n "* stopping $DESC: $NAME... " | ||
| 26 | start-stop-daemon -K -x $DAEMON | ||
| 27 | echo "done." | ||
| 28 | ;; | ||
| 29 | restart) | ||
| 30 | echo "* restarting $DESC: $NAME... " | ||
| 31 | $0 stop | ||
| 32 | $0 start | ||
| 33 | echo "done." | ||
| 34 | ;; | ||
| 35 | *) | ||
| 36 | echo "Usage: $0 {start|stop|restart}" | ||
| 37 | exit 1 | ||
| 38 | ;; | ||
| 39 | esac | ||
| 40 | |||
| 41 | exit 0 | ||
