slim.rc 229 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. #
  3. # /etc/rc.d/slim: start/stop slim
  4. #
  5. case $1 in
  6. start)
  7. /usr/bin/slim -d
  8. ;;
  9. stop)
  10. killall /usr/bin/slim
  11. ;;
  12. restart)
  13. $0 stop
  14. sleep 2
  15. $0 start
  16. ;;
  17. *)
  18. echo "usage: $0 [start|stop|restart]"
  19. ;;
  20. esac
  21. # End of file