/usr/sbin/crond: can't lock /var/run/crond.pid, | Unix Linux Forums | Red Hat

  Go Back    

Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

/usr/sbin/crond: can't lock /var/run/crond.pid,

Red Hat

Closed Thread    
Thread Tools Search this Thread Display Modes
Old 10-22-2010
umair umair is offline
Registered User
Join Date: Oct 2010
Last Activity: 27 January 2012, 12:22 PM EST
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
/usr/sbin/crond: can't lock /var/run/crond.pid,

please tell pre-requisite steps to activate cron. i activated the cron but it not executing the script which i set in crontab entry.through root user i passed the service crond start it get start.but when i go to etc/init.d and passed crond stop command.it gets crond: can't lock /var/run/crond.pid, otherpid may be 3180: Resource temporarily unavailable
Please help to come out this problem

Umair Iqbal
Sponsored Links
Old 10-22-2010
ctsgnb ctsgnb is offline Forum Advisor  
Registered User
Join Date: Oct 2010
Last Activity: 16 December 2014, 5:07 AM EST
Location: France
Posts: 2,930
Thanks: 81
Thanked 624 Times in 596 Posts
have a look at cron.allow and cron.deny files (location may depends on OS) make sure your user is allowed
check autorisation and ownership of /var/run/ tree ensure the user running the crond can write in it
Sponsored Links
Old 10-22-2010
verdepollo's Avatar
verdepollo verdepollo is offline
Registered User
Join Date: Mar 2010
Last Activity: 2 January 2015, 8:32 PM EST
Location: Mexico
Posts: 725
Thanks: 11
Thanked 106 Times in 102 Posts
Is there any relevant info in cron log?

Perhaps it's not an issue with the daemon itself but with the line you put in your crontab?

Last edited by verdepollo; 10-22-2010 at 11:58 AM..
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
redhat 5.2 tikanga crond running but not reading crontab file robjmarquez Red Hat 12 07-26-2010 09:17 PM
Security Question: Lock after invalid login, Session Lock and Required Minimum Password Length nstarz Red Hat 1 06-25-2010 02:24 AM
crond dkbainbridge UNIX for Dummies Questions & Answers 1 09-14-2004 09:57 AM
/sbin Pennywize UNIX for Dummies Questions & Answers 4 12-15-2002 11:26 AM
how to lock keyboard without using lock command dianayun UNIX for Dummies Questions & Answers 7 06-21-2002 07:05 PM

All times are GMT -4. The time now is 09:55 PM.