diff options
author | Joshua Ismael Haase Hernandez <hahj87@gmail.com> | 2011-05-26 11:13:51 -0500 |
---|---|---|
committer | Joshua Ismael Haase Hernandez <hahj87@gmail.com> | 2011-05-26 11:13:51 -0500 |
commit | b18caf89fb235f174419d578a7da0237e456ef3d (patch) | |
tree | 9a9f7e391135f5ce2b05b3956ced1a00bd664bbb /extra/fetchmail/fetchmail.rc | |
parent | a084559f421a288dd77f81e458161f95ae8d1be9 (diff) | |
parent | 6e35be4b44d90f92ddceb8b067cbbf03fc652a35 (diff) |
Merge branch 'master' of vparabola:~/abslibre-pre-mips64el
Diffstat (limited to 'extra/fetchmail/fetchmail.rc')
-rw-r--r-- | extra/fetchmail/fetchmail.rc | 3 |
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 |