updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / up-imapproxy / imapproxy.runit
blob0d10d4471822ec2360ff329e4378d741de8c7e0f
1 #!/bin/sh
3 exec 2>&1
5 # general config
6 . /etc/rc.conf
7 . /etc/rc.d/functions
9 BIN=/sbin/in.imapproxyd
10 SVC=imapproxy
12 PID=`pidof $BIN`
13 if [ -z "$PID" ]
14 then
15 if [ -f /var/run/$SVC.pid ]
16 then
17 rm /var/run/$SVC.pid
18 rm_daemon imapproxy
20 $BIN
21 else
22 [ -z $PID ] || exec watchpid $PID