repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git]
/
up-imapproxy
/
imapproxy.runit
blob
0d10d4471822ec2360ff329e4378d741de8c7e0f
1
#!/bin/sh
2
3
exec
2
>&
1
4
5
# general config
6
.
/
etc
/
rc.conf
7
.
/
etc
/
rc.d
/
functions
8
9
BIN
=/
sbin
/
in
.imapproxyd
10
SVC
=
imapproxy
11
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
19
fi
20
$BIN
21
else
22
[
-z
$PID
]
||
exec
watchpid
$PID
23
fi