vsftpd: change boot messages
So they are more similar to the rest of the bootscripts. Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
1405e22241
commit
cd8ee1eebc
|
|
@ -10,7 +10,6 @@
|
||||||
# under the terms of the GNU General Public License version 2 as published by
|
# under the terms of the GNU General Public License version 2 as published by
|
||||||
# the Free Software Foundation.
|
# the Free Software Foundation.
|
||||||
#
|
#
|
||||||
#
|
|
||||||
# !Description: vsftpd bootscript
|
# !Description: vsftpd bootscript
|
||||||
#
|
#
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
@ -29,22 +28,22 @@ pidfile="/var/run/vsftpd.pid"
|
||||||
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
start)
|
start)
|
||||||
[ -z "${quietboot}" ] && echo -n "Starting vsftpd server: "
|
echo -n "Starting vsftpd server: "
|
||||||
if [ -s "${pidfile}" ]; then
|
if [ -s "${pidfile}" ]; then
|
||||||
pid="$(cat ${pidfile})"
|
pid="$(cat ${pidfile})"
|
||||||
if kill -0 "${pid}" 2>/dev/null; then
|
if kill -0 "${pid}" 2>/dev/null; then
|
||||||
[ -z "${quietboot}" ] && echo " already running."
|
echo " already running."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
start-stop-daemon -S -b -m -p "${pidfile}" -x "${daemon}"
|
start-stop-daemon -S -b -m -p "${pidfile}" -x "${daemon}"
|
||||||
[ -z "${quietboot}" ] && echo "OK"
|
echo "done"
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Stopping vsftpd server: "
|
echo -n "Stopping vsftpd server: "
|
||||||
start-stop-daemon -K -q -p "${pidfile}"
|
start-stop-daemon -K -q -p "${pidfile}"
|
||||||
rm "${pidfile}"
|
rm "${pidfile}"
|
||||||
echo "OK"
|
echo "done"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {start|stop}"
|
echo "Usage: $0 {start|stop}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue