diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-03-02 23:23:55 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-03-02 23:23:55 +0000 |
commit | bb56456c2c858df333e8bfdcbcdbc203718a4e81 (patch) | |
tree | 54509913e5d0af01c0b72ec9c97ed3dbfbb22446 /ftp/bsdftpd-ssl/files/bsdftpd-ssl.sh | |
parent | - Update to 1.10 (diff) |
- Update to 1.0.1
PR: ports/63650
Submitted by: Nick Leuta <skynick@mail.sc.ru> (maintainer)
Notes
Notes:
svn path=/head/; revision=102777
Diffstat (limited to 'ftp/bsdftpd-ssl/files/bsdftpd-ssl.sh')
-rw-r--r-- | ftp/bsdftpd-ssl/files/bsdftpd-ssl.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ftp/bsdftpd-ssl/files/bsdftpd-ssl.sh b/ftp/bsdftpd-ssl/files/bsdftpd-ssl.sh new file mode 100644 index 000000000000..7ac97ef97405 --- /dev/null +++ b/ftp/bsdftpd-ssl/files/bsdftpd-ssl.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in +start) + if [ -x ${PREFIX}/libexec/ftpd ]; then + ${PREFIX}/libexec/ftpd -D -l -p /var/run/ftpd.pid > /dev/null + echo -n ' BSDftpd-ssl' + fi + ;; +stop) + if [ -r /var/run/ftpd.pid ]; then + kill -TERM `cat /var/run/ftpd.pid` + rm -f /var/run/ftpd.pid + echo -n ' BSDftpd-ssl' + fi + ;; +*) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 1 + ;; +esac + +exit 0 |