dovecot: import from packages

Signed-off-by: Peter Wagner <tripolar@gmx.at>
This commit is contained in:
Peter Wagner
2014-06-16 11:49:56 +02:00
parent d5dd6b3c31
commit f8ba70a8a1
3 changed files with 125 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2013 OpenWrt.org
START=75
STOP=75
USE_PROCD=1
start_service() {
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
procd_open_instance
procd_set_param command /usr/sbin/dovecot -F
procd_close_instance
}