CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
msmtp: moved from core collection
[attic/ports/opt-cross.git] / dovecot / dovecot
1 #!/bin/sh
2 #
3 # /etc/rc.d/dovecot: start/stop dovecot IMAP/POP3 daemon
4 #
5
6 KEY=/etc/ssl/keys/dovecot.key
7 CRT=/etc/ssl/certs/dovecot.crt
8
9 case $1 in
10 start)
11 if [ ! -s $KEY -o ! -s $CRT ]; then
12 /usr/bin/mksslcert $KEY $CRT
13 fi
14 /usr/sbin/dovecot
15 ;;
16 stop)
17 killall -q /usr/sbin/dovecot
18 ;;
19 restart)
20 $0 stop
21 sleep 2
22 $0 start
23 ;;
24 reload)
25 kill -s HUP $(pidof dovecot)
26 ;;
27 *)
28 echo "usage: $0 [start|stop|restart|reload]"
29 ;;
30 esac
31
32 # End of file