crontab for services

The UnrealIRCd team does not officially provide support for any services packages that you may be using or want to use. This forum is provided so the community can help each other with services issues.

Moderator: Supporters

Locked
pete212
Posts: 80
Joined: Mon Jul 12, 2004 1:56 am

crontab for services

Post by pete212 »

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?
WilliamWIkked
Posts: 59
Joined: Sun Jun 20, 2004 3:30 am
Contact:

Post by WilliamWIkked »

did you chmod the file?, and edit the file? (if nescessary)
[insert another cliche sig here.]
pete212
Posts: 80
Joined: Mon Jul 12, 2004 1:56 am

Post by pete212 »

yes sir
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

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.
-- codemastr
pete212
Posts: 80
Joined: Mon Jul 12, 2004 1:56 am

Post by pete212 »

of course i installed it lol :p -- would :

*/1 * * * * /www0/ianet/auspices/serviceschk

work?
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post by AngryWolf »

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".
Locked