Hallo Zusammen,
ich bastle grad an der fetchmail, postfix Kombo. auf der Ubuntu 8.04 Server
ich habe die Konfig des Wiki für fetchmail befolgt, und wollte dann fetchmail alle 5min abholen lasen. dazu habe ich folgendes in die /etc/init.d/fetchmail eingetragen:
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/fetchmail
USER=fetchmail
CONFFILE=/etc/fetchmailrc
OPTIONS="--daemon 300 --syslog -f $CONFFILE"
PIDFILE="`getent passwd $USER | awk -F: '{ print $6 }'`/.fetchmail.pid"
UIDL=/var/mail/.fetchmail-UIDL-cachedanach: sudo update-rc.d fetchmail defaults und /etc/init.d/fetchmail start
Nun kommt folgende Fehlermeldung:
bash: /etc/init.d/fetchmail: /bin/sh^M: bad interpreter: No such file or directory
selbst wenn ich die Änderungen rückgängig mache, kommt diese Fehlermeldung beim Start von fetchmail.
Ich habe eine /bin/sh (zfgrep) und eine /bin/sh.distrib (zforce)
und in der /etc/init.d/fetchmail finde ich nur einen Eintrag mit /bin/sh:
if ! id $USER >/dev/null 2>&1; then if [ "$USER" = "fetchmail" ]; then # The fetchmail user might have been removed when the fetchmail-common # package is purged. We have to re-add it here so the system-wide # daemon will run. adduser --system --ingroup nogroup --home /var/lib/fetchmail \ --shell /bin/sh --disabled-password fetchmail >/dev/null 2>&1 || true # work around possible adduser bug, see #119366 [ -d /var/lib/fetchmail ] || mkdir -p /var/lib/fetchmail chmod 700 /var/lib/fetchmail chown -h -R fetchmail:nogroup /var/lib/fetchmail else log_failure_msg "$0: $USER user does not exist!" exit 1 fi fi
Da ich noch nicht soviel Linux kenne hab, bin ich ratlos und hoffe auf Hilfe.
Viele Grüße
Haiko