exim 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/bin/sh
  2. ########################################################################
  3. # Begin exim
  4. #
  5. # Description : Starts Postfix Mail Trasfer Agent
  6. #
  7. # Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
  8. #
  9. # Version : LFS 7.0
  10. #
  11. ########################################################################
  12. ### BEGIN INIT INFO
  13. # Provides: exim
  14. # Required-Start: $syslog $local_fs $network
  15. # Should-Start: $remote_fs openldap mysql postgresql saslauthd
  16. # Required-Stop: $network
  17. # Should-Stop: $remote_fs openldap mysql postgresql saslauthd
  18. # Default-Start: 3 4 5
  19. # Default-Stop: 0 1 2 6
  20. # Short-Description: Exim MTA
  21. # Description: Controls the Exim Mail Transfer Agent
  22. # X-LFS-Provided-By: BLFS / LFS 7.0
  23. ### END INIT INFO
  24. . /lib/lsb/init-functions
  25. #$LastChangedBy: bdubbs $
  26. #$Date: 2012-05-06 23:36:06 -0500 (Sun, 06 May 2012) $
  27. case "$1" in
  28. start)
  29. log_info_msg "Starting Exim..."
  30. start_daemon /usr/sbin/exim -bd -q15m
  31. evaluate_retval
  32. ;;
  33. stop)
  34. log_info_msg "Stopping exim..."
  35. killproc /usr/sbin/exim
  36. evaluate_retval
  37. ;;
  38. status)
  39. statusproc /usr/sbin/exim
  40. ;;
  41. restart)
  42. $0 stop
  43. sleep 1
  44. $0 start
  45. ;;
  46. *)
  47. echo "Usage: $0 {start|stop|status|restart}"
  48. exit 1
  49. ;;
  50. esac
  51. # End /etc/init.d/exim