lightdm 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/bin/sh
  2. # Begin /etc/rc.d/init.d/lightdm
  3. ### BEGIN INIT INFO
  4. # Provides: lightdm
  5. # Required-Start: $local_fs
  6. # Should-Start: $remote_fs $syslog
  7. # Required-Stop: $local_fs
  8. # Should-Stop: $remote_fs $syslog
  9. # Default-Start: 5
  10. # Default-Stop: 0 1 2 3 4 6
  11. # Short-Description: Starts lightdm.
  12. # Description: Starts lightdm daemon.
  13. # X-LFS-Provided-By: BLFS
  14. ### END INIT INFO
  15. . /lib/lsb/init-functions
  16. #[ -e /opt/xorg/bin/X ] && . /etc/profile
  17. BIN_FILE="/usr/bin/lightdm"
  18. #$LastChangedBy: bdubbs $
  19. #$Date: 2018-01-05 12:17:22 -0600 (Fri, 05 Jan 2018) $
  20. case $1 in
  21. start)
  22. log_info_msg "Starting lightdm..."
  23. start_daemon $BIN_FILE &
  24. evaluate_retval
  25. ;;
  26. stop)
  27. log_info_msg "Stopping lightdm..."
  28. killproc $BIN_FILE
  29. evaluate_retval
  30. ;;
  31. restart)
  32. $0 stop
  33. sleep 2
  34. $0 start
  35. ;;
  36. status)
  37. statusproc ${BIN_FILE}
  38. ;;
  39. *)
  40. echo "usage: $0 [start|stop|restart|status]"
  41. exit 1
  42. ;;
  43. esac
  44. # End /etc/rc.d/init.d/lightdm