25

I had a cron job setup that I cleared using cron -r last night.

This morning I tried to enable it again and get this error each time:

cron: can't lock /var/run/crond.pid, otherpid may be 3759: Resource temporarily unavailable

I have tried rebooting and it didn't help. OS = Debian.

1
  • Please paste the output of these here: ls -alrth /var/run/crond.pid ls -alrth /var/
    – Istvan
    Oct 17, 2009 at 23:52

2 Answers 2

28

I was making a dumb error. I should be using crontab command instead of cron.

1
  • Thanks. The same happened to me. Sep 19, 2023 at 12:37
0

cron: can't lock /var/run/crond.pid, otherpid may be 5021: Resource temporarily unavailable

after removing pid from cron.pid file it started working, could you please check once if that helps

You must log in to answer this question.