Lines 1-5
Link Here
|
1 |
#!/bin/sh |
1 |
#!/bin/sh |
2 |
|
2 |
|
|
|
3 |
# Add extra options here for the BSDftpd-ssl FTP server. |
4 |
# See ftpd-ssl(8) for more details. |
5 |
EXTRAOPTS="-l" |
6 |
|
7 |
# You shouldn't edit anything below... |
3 |
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then |
8 |
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then |
4 |
echo "$0: Cannot determine the PREFIX" >&2 |
9 |
echo "$0: Cannot determine the PREFIX" >&2 |
5 |
exit 1 |
10 |
exit 1 |
Lines 8-14
Link Here
|
8 |
case "$1" in |
13 |
case "$1" in |
9 |
start) |
14 |
start) |
10 |
if [ -x ${PREFIX}/libexec/ftpd ]; then |
15 |
if [ -x ${PREFIX}/libexec/ftpd ]; then |
11 |
${PREFIX}/libexec/ftpd -D -l -p /var/run/ftpd.pid > /dev/null |
16 |
${PREFIX}/libexec/ftpd -D -p /var/run/ftpd.pid ${EXTRAOPTS} > /dev/null |
12 |
echo -n ' BSDftpd-ssl' |
17 |
echo -n ' BSDftpd-ssl' |
13 |
fi |
18 |
fi |
14 |
;; |
19 |
;; |