service sshd restart出现/etc/init.d/sshd: line 183: syntax error: unexpected end o
case "$1" instart)
start
;;
stop)
stop
;;
restart)
stop
start
;;
reload)
reload
;;
condrestart)
if [ -f /var/lock/subsys/sshd ] ; then
do_restart_sanity_check
if [ "$RETVAL" = 0 ] ; then
stop
# avoid race
sleep 3
start
fi
fi
;;
status)
status -p $PID_FILE openssh-daemon
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
RETVAL=1
exit $RETVAL
183行就是最后一行,这什么问题呢。 case语句没结束吧
exit $RETVAL前面新加上一行esac 谢谢,问题已解决:) :) :) :) :)
页:
[1]