diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-07-18 20:54:41 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-07-18 20:54:41 +0000 |
commit | ea99a484345535a464a374dff9df4f53ca956dd0 (patch) | |
tree | 65a691eead9673ee80131af5bd33ca100ed461d2 /ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh.compat | |
parent | GGI:IRC is a Perl/CGI program that lets you access IRC from a web browser, it is (diff) |
- Update to 1.1.0
PR: ports/83633
Submitted by: Nick Leuta <skynick@mail.sc.ru> (maintainer)
Notes
Notes:
svn path=/head/; revision=139536
Diffstat (limited to 'ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh.compat')
-rw-r--r-- | ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh.compat | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh.compat b/ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh.compat new file mode 100644 index 000000000000..94f75034ee6d --- /dev/null +++ b/ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh.compat @@ -0,0 +1,48 @@ +#!/bin/sh + +# This is the startup script that runs bsdftpd-ssl FTP server in FreeBSD 4.x. + +# Set the value to "YES" to make this script actually do something. +ENABLE="NO" + +# Add extra options here for the FTP server. +# See ftpd-ssl(8) for more details. +EXTRAOPTS="-l" + +# You shouldn't edit anything below... +case ${ENABLE} in + [Yy][Ee][Ss]) + ;; + *) + exit 0 + ;; +esac + +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 -p /var/run/ftpd.pid ${EXTRAOPTS} > /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 |