Chinaunix首页 | 论坛 | 博客
  • 博客访问: 547321
  • 博文数量: 201
  • 博客积分: 7734
  • 博客等级: 少将
  • 技术积分: 1994
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-09 19:18
文章分类

全部博文(201)

文章存档

2011年(28)

2010年(173)

分类: LINUX

2011-03-29 23:26:13

  1. case "$1" in
  2. start)
  3. start
  4. ;;
  5. stop)
  6. stop
  7. ;;
  8. status)
  9. status
  10. ;;
  11. restart)
  12. stop
  13. start
  14. ;;
  15. condrestart)
  16. condrestart
  17. ;;
  18. *)
  19. echo $"Usage: $0 {start|stop|restart|condrestart|status}"
  20. exit 1
  21. esac
阅读(595) | 评论(0) | 转发(0) |
0

上一篇:bash 判断

下一篇:bash for

给主人留下些什么吧!~~