cyrus.rc6 460 B

1234567891011121314151617181920212223
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2007 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. depend() {
  5. use net
  6. use dns logger
  7. after drac saslauthd
  8. }
  9. start() {
  10. ebegin "Starting cyrus imapd"
  11. start-stop-daemon --start --quiet --background \
  12. --exec /usr/lib/cyrus/master -- ${CYRUS_OPTS}
  13. eend $?
  14. }
  15. stop() {
  16. ebegin "Stopping cyrus imapd"
  17. start-stop-daemon --stop --quiet --pidfile /var/run/cyrus-master.pid
  18. eend $?
  19. }