Hey all,
Just a quickie - I have a SuSE 7.2 pro system here [Which I bought btw =o)]
As I have a demon internet account, I downloaded the latest sources for
fetchmail - as the supplied one does not appear to do SDPS [or am I
mistaken?]
Anyway, I compiled it, did a "make install" and it works EXCEPT for the
following:
setup distribution and I have compiled fetchmail from the latest sources.
I did a make install.
Right then, Fetchmail works and chucks itself into daemon mode, but the
script below fails it for some unknown reason. [ in /sbin/init.d]
Can anyone tell me where I have screwed up the script? In fact, who runs
the init process? Maybe thats my problem.
Thanks all,
Jon Jeffels
#! /bin/sh
# Copyright (c) 1996 StarDivision GmbH. All rights reserved.
# Copyright (c) 1996 S.u.S.E. Gmbh Fuerth, Germany. All rights reserved.
#
# Author: Bastian Epting, StarDivision GmbH
# Florian La Roche,
# Volker Lendecke,
# Attemped modification and failure by Jon =o)
. /etc/rc.config
# Determine the base and follow a runlevel link name.
base=${0##*/}
link=${base#*[SK][0-9][0-9]}
# Force execution if not called by a runlevel directory.
test $link = $base && START_FETCHMAIL=yes
test "$START_FETCHMAIL" = "yes" || exit 0
# The echo return value for success (defined in /etc/rc.config).
return=$rc_done
case "$1" in
start)
echo -n "Starting fetchmail in daemon mode:"
startproc /usr/local/bin/fetchmail || return=$rc_failed
echo -e "$return"
;;
stop)
echo -n "Shutting down fetchmail services:"
killproc -TERM /usr/local/bin/fetchmail || return=$rc_failed
echo -e "$return"
;;
restart|reload)
$0 stop && $0 start || return=$rc_failed
;;
status)
echo -n "Checking for service fetchmail: "
checkproc /usr/local/bin/fetchmail && echo -n "OK " || echo -n "No
process "
;;
*)
echo "Usage: $0 {start|stop|restart|reload|status}"
exit 1
esac
# Inform the caller not only verbosely and set an exit status.
test "$return" = "$rc_done" || exit 1
exit 0
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 18/09/2001