/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
    #1  
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

Regards,
Umair Iqbal
Sponsored Links
    #2  
Old 10-22-2010
ctsgnb ctsgnb is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 26 June 2014, 10:29 AM EDT
Location: France
Posts: 2,929
Thanks: 80
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
    #3  
Old 10-22-2010
verdepollo's Avatar
verdepollo verdepollo is offline
Registered User
 
Join Date: Mar 2010
Last Activity: 1 September 2014, 11:09 AM EDT
Location: Mexico
Posts: 725
Thanks: 11
Thanked 105 Times in 101 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 10: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 08:17 PM
Security Question: Lock after invalid login, Session Lock and Required Minimum Password Length nstarz Red Hat 1 06-25-2010 01:24 AM
crond dkbainbridge UNIX for Dummies Questions & Answers 1 09-14-2004 08:57 AM
/sbin Pennywize UNIX for Dummies Questions & Answers 4 12-15-2002 10:26 AM
how to lock keyboard without using lock command dianayun UNIX for Dummies Questions & Answers 7 06-21-2002 06:05 PM



All times are GMT -4. The time now is 02:42 AM.