#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2008 OpenWrt.org

START=99

RUN_D=/var/run/dovecot
PID_F=$RUN_D/master.pid

start() {
	mkdir -p $RUN_D
	dovecot
}

stop() {
	[ -f $PID_F ] && kill $(cat $PID_F)
}

reload() {
	[ -f $PID_F ] && kill -HUP $(cat $PID_F)
}
