2007-04-01 14:05:29 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2011-11-09 23:25:15 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2007-04-01 14:05:29 +00:00
|
|
|
|
|
|
|
START=99
|
|
|
|
|
2011-11-09 23:25:15 +00:00
|
|
|
SERVICE_PID_FILE=/var/run/dovecot/master.pid
|
2007-04-01 14:05:29 +00:00
|
|
|
|
|
|
|
start() {
|
2011-11-09 23:25:15 +00:00
|
|
|
user_exists dovecot 59 || user_add dovecot 59
|
|
|
|
group_exists dovecot 59 || group_add dovecot 59
|
|
|
|
mkdir -p -m 0755 /var/lib/dovecot
|
|
|
|
mkdir -p -m 0755 /var/run/dovecot
|
|
|
|
chmod 0750 /var/lib/dovecot
|
|
|
|
service_start /usr/sbin/dovecot
|
2007-04-01 14:05:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2011-11-09 23:25:15 +00:00
|
|
|
service_stop /usr/sbin/dovecot
|
2007-04-01 14:05:29 +00:00
|
|
|
}
|
2009-03-15 14:31:14 +00:00
|
|
|
|
|
|
|
reload() {
|
2011-11-09 23:25:15 +00:00
|
|
|
service_reload /usr/sbin/dovecot
|
2009-03-15 14:31:14 +00:00
|
|
|
}
|