stunnel 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/bin/sh
  2. # Begin /etc/init.d/stunnel
  3. ### BEGIN INIT INFO
  4. # Provides: samba
  5. # Required-Start: $network
  6. # Should-Start: $remote_fs
  7. # Required-Stop: $network
  8. # Should-Stop: $remote_fs
  9. # Default-Start: 3 4 5
  10. # Default-Stop: 0 1 2 6
  11. # Short-Description: Provides an SSL encryption wrapper.
  12. # Description: Provides an SSL encryption wrapper between remote clients and
  13. # local (inetd-startable) or remote servers. The concept is that
  14. # having non-SSL aware daemons running on your system you can
  15. # easily set them up to communicate with clients over secure SSL
  16. # channels.
  17. # X-LFS-Provided-By: BLFS
  18. ### END INIT INFO
  19. . /lib/lsb/init-functions
  20. #$LastChangedBy: bdubbs $
  21. #$Date: 2011-11-11 22:33:41 -0600 (Fri, 11 Nov 2011) $
  22. case "$1" in
  23. start)
  24. log_info_msg "Starting the Stunnel Daemon..."
  25. start_daemon /usr/bin/stunnel
  26. evaluate_retval
  27. ;;
  28. stop)
  29. log_info_msg "Stopping the Stunnel Daemon..."
  30. killproc /usr/bin/stunnel
  31. evaluate_retval
  32. ;;
  33. restart)
  34. $0 stop
  35. sleep 1
  36. $0 start
  37. ;;
  38. status)
  39. statusproc /usr/bin/stunnel
  40. ;;
  41. *)
  42. echo "Usage: $0 {start|stop|restart|status}"
  43. exit 1
  44. ;;
  45. esac
  46. # End /etc/init.d/stunnel