19,610
社区成员
发帖
与我相关
我的任务
分享
#!/bin/bash
# chkconfig: 345 64 36
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
status)
status
if [ $? -eq 0 ]; then
echo "$name_service is running"
else
echo "$name_service is stopped"
fi
;;
del)
del
;;
*)
echo $"Usage: $0 {start|stop|status|restart|del}"
exit 2
esac
exit $?