packages/mail/dovecot/files/dovecot.init
nico 48d24de492 packages/dovecot: use new service functions, move user/group creation from postinst to initscript
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28903 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-09 23:25:15 +00:00

24 lines
452 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
START=99
SERVICE_PID_FILE=/var/run/dovecot/master.pid
start() {
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
}
stop() {
service_stop /usr/sbin/dovecot
}
reload() {
service_reload /usr/sbin/dovecot
}