packages/net/dovecot/files/dovecot.init
nico a2cc28204f add dovecot (closes: #1353)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6790 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-01 14:05:29 +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)
}