add dovecot (closes: #1353)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6790 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
16
net/dovecot/files/dovecot.init
Normal file
16
net/dovecot/files/dovecot.init
Normal file
@ -0,0 +1,16 @@
|
||||
#!/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)
|
||||
}
|
Reference in New Issue
Block a user