packages/mail/dovecot/files/dovecot.init
tripolar 85062f578e [packages] dovecot: switch to new procd init script style
Signed-off-by: Peter Wagner <tripolar@gmx.at>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@38206 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-26 11:21:41 +00:00

19 lines
399 B
Bash

#!/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
}