Hallo Leute,
Ich habe nun mir folgendes Startscript von der Seite
http://www.schaarwaechter.de/mailmigration/node9.html zusammengesucht,
damit spamd bei starten automatisch gestartet wird. Bei Aufruf von
/etc/init.d/spamd bekomme ich folgende Fehlermeldung: bad interpreter:
No such file or directory
Der Start von Hand klappt einwandfrei, aber was ist daran falsch.
Danke fuer eure Hilfe.
Gruss
Marco
#! /bin/sh
# Copyright (c) 1996 S.u.S.E. Gmbh Fuerth, Germany. All rights
reserved. # # Author: Burchard Steinbild , 1996
# ### BEGIN INIT INFO
# Provides: SpamAssassin / Spamd
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 5
# Default-Stop:
# Description: SpamAssassin daemon
### END INIT INFO
. /etc/rc.config
# Determine the base and follow a runlevel link name. base=${0##*/}
link=${base#*[SK][0-9][0-9]}
# The echo return value for success (defined in /etc/rc.config).
return=$rc_done case "$1" in
start)
echo -n "Starting service spamd daemon:"
startproc /usr/bin/spamd -d || return=$rc_failed
echo -e "$return"
;;
stop)
echo -n "Shutting down service spamd daemon:"
killproc -TERM /usr/bin/spamd || return=$rc_failed
echo -e "$return"
;;
status)
echo -n "Checking for service spamd deamon: "
checkproc /usr/bin/spamd && echo OK || echo No process
;;
reload)
$0 stop && $0 start || return=$rc_failed
;;
restart)
$0 stop && $0 start || return=$rc_failed
;;
*)
echo "Usage: $0 {start|stop|status|restart|reload}"
exit 1
;;
esac
# Inform the caller not only verbosely and set an exit status. test
"$return" = "$rc_done" || exit 1 exit 0