Carsten Laun-De Lellis schrieb:
Hallo alle zusammen
Ich bin auf der Suche nach einem script, welches mir den policyd-weight automatisch beim Systemstart startet. Ich habe bisher versucht auf Grundlage des postgrey scriptes in /etc/init.d/ ein entsprechendes script für policyd-weight zu erstellen aber leider funktioniert das so nicht. Auch der Versuch über cron hat es bisher nicht gebracht.
Würde mich sehr freuen, wenn jemand da einen Tipp für mich hätte.
Das ganze läuft im übrigen unter OpenSUSE 11.1
Mit freundlichem Gruß
*Carsten Laun-De Lellis * Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA)
Hauptstrasse 13 D-67705 Trippstadt
Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email: carsten.delellis@delellis.net mailto:carsten.delellis@delellis.net
postfix-users mailing list postfix-users@de.postfix.org http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
fuer suse geht sowas ( pfade ueberpruefen ! )
#! /bin/sh # Provides: policyd-weight # Required-Start: $postfix # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 4 6 # Description: policyd-weight - policyd-weight implementation ### END INIT INFO . /etc/rc.status # Determine the base and follow a runlevel link name. base=${0##*/} link=${base#*[SK][0-9][0-9]} EXE=/usr/sbin/policyd-weight NAME=policyd-weight # Force execution if not called by a runlevel directory. test -x $EXE || exit 0 case "$1" in start) echo -n "Starting $NAME " $EXE start rc_status -v ;; stop) echo -n "Shutting down $NAME " $EXE -k stop rc_status -v ;; restart) $0 stop $0 start rc_status ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac rc_exit