lxdm 1005 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/bin/sh
  2. # Begin /etc/rc.d/init.d/lxdm
  3. ### BEGIN INIT INFO
  4. # Provides: lxdm
  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 lxdm.
  12. # Description: Starts lxdm daemon.
  13. # X-LFS-Provided-By: BLFS
  14. ### END INIT INFO
  15. . /etc/rc.d/functions
  16. BIN_FILE="/usr/sbin/lxdm"
  17. #$LastChangedBy: ken $
  18. #$Date: 2014-09-11 17:27:58 -0500 (Thu, 11 Sep 2014) $
  19. case $1 in
  20. start)
  21. log_info_msg "Yerel ayarlar eklendi..."
  22. yerel_ayar
  23. log_info_msg "Starting LXDM..."
  24. start_daemon $BIN_FILE -d
  25. evaluate_retval
  26. ;;
  27. stop)
  28. log_info_msg "Stopping LXDM..."
  29. killproc $BIN_FILE
  30. evaluate_retval
  31. ;;
  32. restart)
  33. $0 stop
  34. sleep 2
  35. $0 start
  36. ;;
  37. status)
  38. statusproc ${BIN_FILE}
  39. ;;
  40. *)
  41. echo "usage: $0 [start|stop|restart|status]"
  42. exit 1
  43. ;;
  44. esac
  45. # End /etc/rc.d/init.d/lxdm