• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Spampd - versteh ich leider nicht

Status
Für weitere Antworten geschlossen.

mamama

Newbie
Boot - script. Wenn ich dies in mein Verzeichniss kopiere (etc/init.d) und mit dem Run-Level-editor starten möchste sag der mir,
. /etc/rc.d/init.d/functions does not exist or is not there.

wenn ich das Auskommentiere klappt das auhc nicht.

Bitte um Hilfe.

Code:
#!/bin/sh
#
# This script starts and stops the spampd daemon
#
# chkconfig: 2345 80 30
#
# description: spampd is a daemon process which uses SpamAssassin to check
#              email messages for SPAM.

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -f /usr/bin/spampd -o -f /usr/local/bin/spampd ] || exit 0
PATH=$PATH:/usr/bin:/usr/local/bin

# See how we were called.
case "$1" in
  start)
	# Start daemon.
	echo -n "Starting spampd: "
	daemon spampd --port=10025 --relayhost=127.0.0.1:25 --tagall --auto-whitelist
	RETVAL=$?
	touch /var/lock/spampd
	echo
	;;
  stop)
	# Stop daemons.
	echo -n "Shutting down spampd: "
	killproc spampd
	RETVAL=$?
	rm -f /var/lock/spampd
	echo
	;;
  restart)
	$0 stop
	$0 start
	;;
  status)
	status spampd
	;;
  *)
	echo "Usage: $0 {start|stop|restart|status}"
	exit 1
esac

exit 0


Mein lösungsvorschlag:
Dieses Script ist für Rat Hat geschrieben und funtzt nicht mit SUSE? :(
 
Dein Lösungsvorschlag klingt doch schon mal ganz gut - wie hast Du spamd denn installiert? Ich hatte unter Suse 9.3 das spamassassin-RPM installiert und dort waren auch die Startskripte an der richtigen Stelle enthalten.
 
Status
Für weitere Antworten geschlossen.
Oben