I have a serviceschk already and it works because i ./serviceschk 'd it and it worked but i am having trouble with the .cron file i tried
0,01,02,03,04,05 * * * * /www0/chatnet/auspices/serviceschk
because i want it to check for services running every minute, and it doesnt work. anyone know what i did wrong?
crontab for services
Moderator: Supporters
-
WilliamWIkked
- Posts: 59
- Joined: Sun Jun 20, 2004 3:30 am
- Contact:
-
codemastr
- Former UnrealIRCd head coder
- Posts: 811
- Joined: Sat Mar 06, 2004 8:47 pm
- Location: United States
- Contact:
Well first off, that won't check every minute, that will check on minute 0, 1, 2, 3, 4, and 5 of each hour. That leaves minutes 6-59 unchecked. You want to use an *. Whoever told you that 0,1,2,3,4,5 was the proper way to check every minute didn't know what he was talking about.
Secondly, did you actually install the cron job? Simply creating the file isn't enough, you must actually tell crontab to load it.
Secondly, did you actually install the cron job? Simply creating the file isn't enough, you must actually tell crontab to load it.
-- codemastr
I think yes. This is the kind of question that many people usually answer with "try it and see the result".
Well, the serviceschk script does what it should (as you said, manually running works fine), so I don't think there would be any problems. Yet it's always good to double-check whether your crontab configuration is loaded right by running the command "crontab -l".