cron job executing every minute but should be setup to execute every 4 hours.
Posted
by Frank V
on Server Fault
See other posts from Server Fault
or by Frank V
Published on 2010-04-21T21:03:32Z
Indexed on
2010/04/21
21:13 UTC
Read the original article
Hit count: 281
Note: I've viewed cron: can’t lock /var/run/crond.pid, otherpid may be 3759 but I believe my question is different (but with the same resulting problem.)
I'm very new to cron. I setup a script to run a python script every minute to test that everything was working. I did use crontab
to accomplish this. It worked great, so I wanted to switch it to run every 4 hour.
I changed my * * * * * {...}
to * */4 * * * {...}
but the job is continues to run every minute. It's been like this for the last hour or so.
When I attempt to run cron restart
(thinking that would solve the problem), I receive the following error message:
cron: can't lock /var/run/crond.pid, otherpid may be 2311: Resource temporarily unavailable
Is my cron syntax wrong? And why might I not be able to restart cron?
© Server Fault or respective owner