gdm 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #!/bin/sh
  2. ########################################################################
  3. # Begin gdm
  4. #
  5. # Description : GDM Boot Script
  6. #
  7. # Authors : Armin K. <krejzi@email.com>
  8. #
  9. # Version : BLFS SVN
  10. #
  11. ########################################################################
  12. ### BEGIN INIT INFO
  13. # Provides: gdm
  14. # Required-Start: $local_fs $remote_fs
  15. # Required-Stop: $local_fs $remote_fs
  16. # Default-Start: 2 3 4 5
  17. # Default-Stop: 0 1 6
  18. # Short-Description: GNOME Display Manager
  19. # X-LFS-Provided-By: BLFS
  20. ### END INIT INFO
  21. . /lib/lsb/init-functions
  22. GDM_BINARY=/usr/sbin/gdm
  23. case "${1}" in
  24. start)
  25. log_info_msg "Starting GNOME Display Manager GDM"
  26. start_daemon ${GDM_BINARY}
  27. evaluate_retval
  28. ;;
  29. stop)
  30. log_info_msg "Stopping GNOME Display Manager GDM"
  31. killproc ${GDM_BINARY}
  32. evaluate_retval
  33. ;;
  34. restart)
  35. ${0} stop
  36. sleep 1
  37. ${0} start
  38. ;;
  39. status)
  40. statusproc ${GDM_BINARY}
  41. ;;
  42. *)
  43. echo "Usage: ${0} {start|stop|restart|status}"
  44. exit 1
  45. ;;
  46. esac
  47. exit 0
  48. # End gdm