summaryrefslogtreecommitdiffstats
path: root/net-ftp/bsdftpd-ssl/files/bsdftpd.sysinit
blob: 942c06285658e57ed6671848e1a9e1307c7e8c81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:

depend() {
    need net
}

start() {
    ebegin "Starting BSD FTPD - SSL"
    ftpd -h -S wu-ext -X wu-ext -l -l -B $BSDFTPDSSL_FIRST_PASSIVE_PORT:$BSDFTPDSSL_LAST_PASSIVE_PORT -D -z secure -z cert=$BSDFTPDSSL_SSL_CERT -z key=$BSDFTPDSSL_SSL_KEY -z verify=1 -z auth=1 -z CAfile=$BSDFTPDSSL_SSL_CHAIN -z CApath=$BSDFTPDSSL_SSL_USERS -z certsok -z KEYpassword=$BSDFTPDSSL_SSL_PASSWORD -z defau -z refnu -z cipher=HIGH
    eend $?
}

stop() {
    ebegin "Stopping BSD FTPD - SSL"
    killall ${KILL_OPTS} ftpd
    eend $?
}