标签:
#!/bin/bash case $1 in ‘start‘) echo "start server..." ;; ‘stop‘) echo "stop server..." ;; ‘restart‘) echo "restart server..." ;; ‘status‘) echo "runing..." ;; *) echo "./`basename $0` {start|stop||restart|status} " ;; esac ~
标签:
原文地址:http://www.cnblogs.com/sysk/p/4739458.html