Gentoo Archives: gentoo-user-de

From: Stefan Onken <Support@××××××.de>
To: gentoo-user-de@l.g.o
Subject: Re: [gentoo-user-de] Frage zu Cron (zu dumm einen Cron Job einzurichten)
Date: Fri, 23 Jun 2006 17:34:28
Message-Id: 200606231931.07196.Support@stonki.de
In Reply to: Re: [gentoo-user-de] Frage zu Cron (zu dumm einen Cron Job einzurichten) by Erik Wasser
1 Am Freitag, 23. Juni 2006 18:42 schrieb Erik Wasser:
2
3 > Was sagen die Logfiles? Wird der Job ausgeführt?
4
5 ok, also der Job wird ausgeführt...
6
7 1)
8 umts1 ~ # /etc/init.d/vixie-cron status
9 * status: started
10
11 2) umts1 ~ # ps aux | grep cron
12 root 6220 0.0 0.5 1720 636 ? Ss Jun22
13 0:00 /usr/sbin/cron
14
15 3) umts1 ~ # cat /etc/crontab
16
17 # Global variables
18 SHELL=/bin/bash
19 PATH=/sbin:/bin:/usr/sbin:/usr/bin
20 MAILTO=root
21 HOME=/
22 [...]
23 0 5 * * * root /sbin/reboot
24 * * * * * root /bin/echo "test" >> /root/test.test
25
26 nach 2 min -->
27 umts1 ~ # cat test.test
28 test
29 test
30
31 4) ich hatte nun einmal die crontab wie folgt angepasst:
32 # check scripts in cron.hourly, cron.daily, cron.weekly and
33 cron.monthly
34 0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
35 1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
36 15 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
37 30 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
38 */10 * * * * root test -x /usr/sbin/run-crons
39 && /usr/sbin/run-crons
40
41 30 19 * * * root /sbin/reboot
42
43 also müsste doch um 19:30 ein Reboot ausgeführt werden, oder ?
44 Funktioniert jedoch leider nicht...
45
46
47 5) in den Logs steht nichts drinne. Noch eine Idee ?
48 Jun 23 19:30:01 [cron] (root) CMD (test -x /usr/sbin/run-crons
49 && /usr/sbin/run-crons )
50
51 6) in /root/ ist kein deadletter
52
53 Sonst noch ne Idee ?
54 --
55 www.stonki.de: the more I see, the more I know.......
56 www.proftpd.de: Deutsche ProFTPD Dokumentation
57 www.krename.net: Der Batch Renamer für KDE
58 www.kbarcode.net: Die Barcode Solution für KDE
59
60 --
61 gentoo-user-de@g.o mailing list

Replies

Subject Author
Re: [gentoo-user-de] Frage zu Cron (zu dumm einen Cron Job einzurichten) Erik Wasser <erik.wasser@×××××.net>