if [ $# -gt 1 ]; then
shift
echo -n "Suspending with&s;''*''' "
ftpshut $*
else
echo -n "Suspending NOW "
ftpshut now "Maintanance in progress"
fi
else
echo -n "No way to suspend "
fi
echo
;;
resume)
if [ -f /etc/shutmsg ]; then
echo -n "Allowing sessions again "
rm -f /etc/shutmsg
else
echo -n "Was not suspended "
fi
echo
;;
*)
echo -n "Usage:; $0 {start|stop|restart|status|reread|resume"
hash ftpshut
if [ $? = 1 ]; then
echo&s;'''&2;'''
else
echo&s;'''|suspend&2;'''
echo&s;'''suspend accepts additional arguments which are passed to ftpshut(84;'''
fi