summaryrefslogtreecommitdiff
path: root/extra/fetchmail/fetchmail.rc
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-24 22:48:50 +0000
committerroot <root@rshg047.dnsready.net>2011-05-24 22:48:50 +0000
commit363d953113a327863013a9422c8212654a86a209 (patch)
tree01f2b43d3e98433702f9c6ba92ab45bfa151888a /extra/fetchmail/fetchmail.rc
parent87e20a64534e8f58ca4a4f84000b629e48569a98 (diff)
Tue May 24 22:48:50 UTC 2011
Diffstat (limited to 'extra/fetchmail/fetchmail.rc')
-rw-r--r--extra/fetchmail/fetchmail.rc3
1 files changed, 1 insertions, 2 deletions
diff --git a/extra/fetchmail/fetchmail.rc b/extra/fetchmail/fetchmail.rc
index 7c25f72b2..6d453a223 100644
--- a/extra/fetchmail/fetchmail.rc
+++ b/extra/fetchmail/fetchmail.rc
@@ -8,13 +8,12 @@ PID=`pidof -o %PPID /usr/bin/fetchmail`
case "$1" in
start)
stat_busy "Starting fetchmail"
+ [ ! -d /var/run/fetchmail ] && install -d -o fetchmail -g nobody -m700 /var/run/fetchmail
[ -z "$PID" ] &&
su -c "/usr/bin/fetchmail -d $INTERVAL -f $CONFIG" -s /bin/sh fetchmail
if [ $? -gt 0 ]; then
stat_fail
else
- #Fetchmail does this for us:
- #echo $PID > /var/run/fetchmail.pid
add_daemon fetchmail
stat_done
fi