packages/mail/dovecot/files/dovecot.init
nico a9f231baf2 [packages] move packages to a new 'mail' section, cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11014 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-03 02:42:43 +00:00

17 lines
209 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006,2007 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)
}