winbindd 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #!/bin/sh
  2. # Begin /etc/init.d/winbindd
  3. ### BEGIN INIT INFO
  4. # Provides: winbindd
  5. # Required-Start: samba
  6. # Should-Start:
  7. # Required-Stop: samba
  8. # Should-Stop:
  9. # Default-Start: 3 4 5
  10. # Default-Stop: 0 1 2 6
  11. # Short-Description: Provides Name Server Switch (NSS) capabilities to Samba.
  12. # Description: Starts the winbindd daemon to provide
  13. # Name Server Swithch (NSS) capabilities to Samba.
  14. # X-LFS-Provided-By: BLFS
  15. ### END INIT INFO
  16. . /lib/lsb/init-functions
  17. #$LastChangedBy: bdubbs $
  18. #$Date: 2012-08-26 15:15:30 -0500 (Sun, 26 Aug 2012) $
  19. PIDFILE=/var/run/winbindd.pid
  20. case "$1" in
  21. start)
  22. log_info_msg "Starting winbindd..."
  23. start_daemon /usr/sbin/winbindd
  24. evaluate_retval
  25. ;;
  26. stop)
  27. log_info_msg "Stopping winbindd..."
  28. killproc -p ${PIDFILE} /usr/sbin/winbindd
  29. evaluate_retval
  30. log_info_msg "Stopping nmbd..."
  31. killproc /usr/sbin/nmbd
  32. evaluate_retval
  33. ;;
  34. reload)
  35. log_info_msg "Reloading smbd..."
  36. killproc /usr/sbin/winbindd -HUP
  37. evaluate_retval
  38. ;;
  39. restart)
  40. $0 stop
  41. sleep 1
  42. $0 start
  43. ;;
  44. status)
  45. statusproc /usr/sbin/winbindd
  46. ;;
  47. *)
  48. echo "Usage: $0 {start|stop|reload|restart|status}"
  49. exit 1
  50. ;;
  51. esac
  52. # End /etc/init.d/winbindd