Installationsskript des Paketes "cron"


grep -v "#" etc/crontab 2> /dev/null | grep /usr/lib/cron/run-crons > /dev/null || {
mkdir -p var/adm/notify/messages
cat << EOT > var/adm/notify/messages/cron
Hallo (english text below),
Unter /etc befinden sich Verzeichnisse namens cron.hourly, cron.daily,
cron.weekly und cron.monthly.  Skripte und Programme die in diesen
Verzeichnissen abgelegt werden, sollen automatisch gestartet werden.  Damit
dies geschieht, tragen Sie bitte folgendes in Ihre /etc/crontab ein:
*/15 * * * *   root  test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons
Beachten Sie auch bitte, daß das Skript /root/bin/cron.daily in
/etc/cron.daily/aaa_base umbenannt wurde.  Bitte entfernen Sie den Eintrag
auf der /etc/crontab.
Hello.
Under /etc you can find the directories cron.hourly, cron.daily,
cron.weekly and cron.monthly.  Scripts and programs, that are located
there shall be started automatically.  To make this work, please aadd the
following line to your /etc/crontab:
*/15 * * * *   root  test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons
Please note, that /root/bin/cron.daily has moved to /etc/cron.daily/aaa_base.
Please remove the entry from your crontab.
Have a lot of fun...
                          Your SuSE Team
EOT
}
grep -v "#" var/cron/tabs/root 2> /dev/null | grep cron.daily > /dev/null || exit 0
mkdir -p var/adm/notify/messages
cat << EOT > var/adm/notify/messages/crontab
(English translation is below.)
Bei Ihnen ist immer noch "cron.daily" in /var/cron/tabs/root. Bitte
starten Sie als root "crontab -e" und loeschen Sie die Zeile, in der
"cron.daily" aufgerufen wird.
Alle Eintragungen in /var/cron/tabs/root sind nun nach /etc/crontab gewandert.
Diese Datei hat ein extra Feld, in dem der Benutzer eingetragen werden kann,
unter dem der cron-Eintrag gestartet wird.
Damit kann man nun alle sysadm-Cronjobs (root,uucp,news) in einer Datei
eintragen und muss auch kein "su" dort eintragen.
Damit cron.daily nicht doppelt gestartet wird, muss man es aus der alten
Datei /var/cron/tabs/root ueber "crontab -e" loeschen.
You still have "cron.daily" in /var/cron/tabs/root. Please execute
"crontab -e" as user root and delete the line which starts "cron.daily".
Instead of distributing default crontab-entries in /var/cron/tabs/root,
we now have a /etc/crontab file. That file has an additional entry which
contains the name of the user the script should be executed as.
So you can have all sysadm scripts (root,news,uucp) in on file, /etc/crontab.
EOT


(c) SuSE - Letzte Änderung: 31.03.2000 12:37;