summaryrefslogtreecommitdiff
path: root/extra/fetchmail/fetchmail.rc
diff options
context:
space:
mode:
Diffstat (limited to 'extra/fetchmail/fetchmail.rc')
-rw-r--r--extra/fetchmail/fetchmail.rc6
1 files changed, 2 insertions, 4 deletions
diff --git a/extra/fetchmail/fetchmail.rc b/extra/fetchmail/fetchmail.rc
index 6d453a223..4d8b98d40 100644
--- a/extra/fetchmail/fetchmail.rc
+++ b/extra/fetchmail/fetchmail.rc
@@ -2,15 +2,14 @@
. /etc/rc.conf
. /etc/rc.d/functions
-[ -f /etc/conf.d/fetchmail ] && . /etc/conf.d/fetchmail
+. /etc/conf.d/fetchmail
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
+ su -c "/usr/bin/fetchmail -d $INTERVAL -f $CONFIG" -s /bin/sh fetchmail
if [ $? -gt 0 ]; then
stat_fail
else
@@ -24,7 +23,6 @@ case "$1" in
if [ $? -gt 0 ]; then
stat_fail
else
- rm -f /var/run/fetchmail.pid
rm_daemon fetchmail
stat_done
fi