From 363d953113a327863013a9422c8212654a86a209 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 24 May 2011 22:48:50 +0000 Subject: Tue May 24 22:48:50 UTC 2011 --- extra/fetchmail/fetchmail.rc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'extra/fetchmail/fetchmail.rc') 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 -- cgit v1.2.3-54-g00ecf