2007-04-01 14:05:29 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2009-03-15 14:31:14 +00:00
|
|
|
# Copyright (C) 2006-2008 OpenWrt.org
|
2007-04-01 14:05:29 +00:00
|
|
|
|
|
|
|
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)
|
|
|
|
}
|
2009-03-15 14:31:14 +00:00
|
|
|
|
|
|
|
reload() {
|
|
|
|
[ -f $PID_F ] && kill -HUP $(cat $PID_F)
|
|
|
|
}
|