Lines 35-47
Link Here
|
35 |
|
35 |
|
36 |
stop() { |
36 |
stop() { |
37 |
ebegin "Stopping ${SVCNAME}" |
37 |
ebegin "Stopping ${SVCNAME}" |
|
|
38 |
local retval=0 |
38 |
if [ -f ${VSFTPD_PID} ]; then |
39 |
if [ -f ${VSFTPD_PID} ]; then |
39 |
start-stop-daemon --stop --pidfile ${VSFTPD_PID} |
40 |
start-stop-daemon --stop --pidfile ${VSFTPD_PID} || retval=1 |
|
|
41 |
pkill --full ${VSFTPD_CONF} |
40 |
else |
42 |
else |
41 |
ewarn "Couldn't found ${VSFTPD_PID} trying to stop over the process name ${SVCNAME}" |
43 |
ewarn "Couldn't find ${VSFTPD_PID} trying to stop using the config filename ${VSFTPD_CONF}" |
42 |
start-stop-daemon --stop --name ${SVCNAME} |
44 |
pgrep --full ${VSFTPD_CONF} > ${VSFTPD_PID} |
|
|
45 |
start-stop-daemon --stop --pidfile ${VSFTPD_PID} || retval=1 |
46 |
pkill --full ${VSFTPD_CONF} |
43 |
fi |
47 |
fi |
44 |
eend $? |
48 |
eend ${retval} |
45 |
} |
49 |
} |
46 |
|
50 |
|
47 |
# vim: ts=4 |
51 |
# vim: ts=4 |