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:
Javier Viguera 2013-01-24 18:37:48 +01:00
parent 1405e22241
commit cd8ee1eebc
1 changed files with 4 additions and 5 deletions

View File

@ -10,7 +10,6 @@
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
#
# !Description: vsftpd bootscript
#
#===============================================================================
@ -29,22 +28,22 @@ pidfile="/var/run/vsftpd.pid"
case "${1}" in
start)
[ -z "${quietboot}" ] && echo -n "Starting vsftpd server: "
echo -n "Starting vsftpd server: "
if [ -s "${pidfile}" ]; then
pid="$(cat ${pidfile})"
if kill -0 "${pid}" 2>/dev/null; then
[ -z "${quietboot}" ] && echo " already running."
echo " already running."
exit 0
fi
fi
start-stop-daemon -S -b -m -p "${pidfile}" -x "${daemon}"
[ -z "${quietboot}" ] && echo "OK"
echo "done"
;;
stop)
echo -n "Stopping vsftpd server: "
start-stop-daemon -K -q -p "${pidfile}"
rm "${pidfile}"
echo "OK"
echo "done"
;;
*)
echo "Usage: $0 {start|stop}"