Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 173923
Collapse All | Expand All

(-)vsftpd (-3 / +5 lines)
Lines 3-15 Link Here
3
# Distributed under the terms of the GNU General Public License, v2
3
# Distributed under the terms of the GNU General Public License, v2
4
# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/files/vsftpd.init,v 1.4 2007/04/02 11:32:33 uberlord Exp $
4
# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/files/vsftpd.init,v 1.4 2007/04/02 11:32:33 uberlord Exp $
5
5
6
VSFTPD_CONF=${VSFTPD_CONF:-/etc/vsftpd/vsftpd.conf}
7
VSFTPD_NAME=${SVCNAME##*.}
6
VSFTPD_NAME=${SVCNAME##*.}
8
if [ -n "${VSFTPD_NAME}" -a "${SVCNAME}" != "vsftpd" ]; then
7
if [ -n "${VSFTPD_NAME}" -a "${SVCNAME}" != "vsftpd" ]; then
9
    VSFTPD_PID="/var/run/vsftpd.${VSFTPD_NAME}.pid"
8
    VSFTPD_PID="/var/run/vsftpd.${VSFTPD_NAME}.pid"
9
    VSFTPD_CONF_DEFAULT="/etc/vsftpd/${VSFTPD_NAME}.conf"
10
else
10
else
11
    VSFTPD_PID="/var/run/vsftpd.pid"
11
    VSFTPD_PID="/var/run/vsftpd.pid"
12
    VSFTPD_CONF_DEFAULT="/etc/vsftpd/vsftpd.conf"
12
fi
13
fi
14
VSFTPD_CONF=${VSFTPD_CONF:-${VSFTPD_CONF_DEFAULT}}
13
15
14
depend() {
16
depend() {
15
	need net
17
	need net
Lines 45-51 Link Here
45
47
46
start() {
48
start() {
47
	checkconfig || return 1
49
	checkconfig || return 1
48
	ebegin "Starting vsftpd"
50
	ebegin "Starting ${SVCNAME}"
49
	start-stop-daemon --start --exec /usr/sbin/vsftpd \
51
	start-stop-daemon --start --exec /usr/sbin/vsftpd \
50
		--background --make-pidfile --pidfile "${VSFTPD_PID}" \
52
		--background --make-pidfile --pidfile "${VSFTPD_PID}" \
51
		-- "${VSFTPD_CONF}"
53
		-- "${VSFTPD_CONF}"
Lines 53-59 Link Here
53
}
55
}
54
56
55
stop() {
57
stop() {
56
	ebegin "Stopping vsftpd"
58
	ebegin "Stopping ${SVCNAME}"
57
	start-stop-daemon --stop --exec /usr/sbin/vsftpd \
59
	start-stop-daemon --stop --exec /usr/sbin/vsftpd \
58
		--pidfile "${VSFTPD_PID}"
60
		--pidfile "${VSFTPD_PID}"
59
	eend $?
61
	eend $?

Return to bug 173923