packages/mail/dovecot/files/dovecot.init
florian 8c9013726c [package] update dovecot to 1.1.2 (#3785)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@14889 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-15 14:31:14 +00:00

21 lines
265 B
Bash

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