/neatx/extras/rpm/neatx.initscript

http://neatx.googlecode.com/ · Bash · 26 lines · 24 code · 2 blank · 0 comment · 0 complexity · 5f8791b74bbfff1f017135aa35395d3f MD5 · raw file

  1. #!/bin/bash
  2. #
  3. # Copied from freenx-server fedora package
  4. #
  5. # chkconfig: 2345 91 35
  6. # description: Creates /tmp/.X11-unix/ if required
  7. start() {
  8. install -d -o root -g root -m 1777 "/tmp/.X11-unix"
  9. restorecon /tmp/.X11-unix 2>/dev/null || :
  10. }
  11. case "$1" in
  12. start)
  13. start
  14. ;;
  15. stop)
  16. :
  17. ;;
  18. restart)
  19. :
  20. ;;
  21. *)
  22. echo $"Usage: $prog {start}"
  23. exit 1
  24. esac