[packages]dovecot update to v2.2.4
[openwrt/svn-archive/archive.git] / mail / dovecot / files / dovecot.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006-2011 OpenWrt.org
3
4 START=75
5 STOP=75
6
7 SERVICE_PID_FILE=/var/run/dovecot/master.pid
8
9 start() {
10 user_exists dovecot 59 || user_add dovecot 59
11 group_exists dovecot 59 || group_add dovecot 59
12 mkdir -p -m 0755 /var/lib/dovecot
13 mkdir -p -m 0755 /var/run/dovecot
14 chmod 0750 /var/lib/dovecot
15 service_start /usr/sbin/dovecot
16 }
17
18 stop() {
19 service_stop /usr/sbin/dovecot
20 }
21
22 reload() {
23 service_reload /usr/sbin/dovecot
24 }