2007-04-01 14:05:29 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2013-09-26 11:21:41 +00:00
|
|
|
# Copyright (C) 2006-2013 OpenWrt.org
|
2007-04-01 14:05:29 +00:00
|
|
|
|
2013-07-03 01:49:27 +00:00
|
|
|
START=75
|
|
|
|
STOP=75
|
2007-04-01 14:05:29 +00:00
|
|
|
|
2013-09-26 11:21:41 +00:00
|
|
|
USE_PROCD=1
|
2007-04-01 14:05:29 +00:00
|
|
|
|
2013-09-26 11:21:41 +00:00
|
|
|
start_service() {
|
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
|
2013-09-26 11:21:41 +00:00
|
|
|
procd_open_instance
|
|
|
|
procd_set_param command /usr/sbin/dovecot -F
|
|
|
|
procd_close_instance
|
2009-03-15 14:31:14 +00:00
|
|
|
}
|