Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


Any linux people in the house - Crontab?

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

mudcow007
World Chat Champion



Joined: 01 Feb 2012
Karma :

PostPosted: 15:47 - 31 Jul 2015    Post subject: Any linux people in the house - Crontab? Reply with quote

Right set up a crontab job (well quite a few of them) ages ago on a Ubuntu / Asterisk server

the jobs are a buzzer that informs the factory of its breaks etc...

it has worked swimmingly for ages but recently has took the knock

from terminal if I issue the command crontab -l

i get all the jobs.

but they dont seem to be working

Crontab is running aswell (i can see that by issuing the command
"ps -ef l grep cron l grep -v grep"

i get

root 5575 1 0 12:21 ? 00:00:00 /usr/sbin/cron

so guessing its running but wont parse the jobs..

any idea...pretty please
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

duhawkz
World Chat Champion



Joined: 03 Dec 2006
Karma :

PostPosted: 15:56 - 31 Jul 2015    Post subject: Reply with quote

anything in the logs?

what version of linux are you running?
____________________
"The guy is a worthless cunt and I honestly believe I would be a slightly happier person if he died." - Chris-Red
 Back to top
View user's profile Send private message You must be logged in to rate posts

mudcow007
World Chat Champion



Joined: 01 Feb 2012
Karma :

PostPosted: 16:06 - 31 Jul 2015    Post subject: Reply with quote

only thing in the syslog is i can see the job firing but no error that i can see..will post it on here - im not really an ubuntu peep

i think its ubuntu feisty fawn

**edit**

from syslog

Jul 31 15:00:01 pbx-1 /USR/SBIN/CRON[12318]: (root) CMD (cp /var/spool/asterisk/alarm.call /var/spool/asterisk/outgoing/alarm.call)


screenshot of cronjobs

https://i25.photobucket.com/albums/c81/mudcow007/Screenshot_zps1cgtmncy.png


Last edited by mudcow007 on 16:17 - 31 Jul 2015; edited 1 time in total
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Andy_Pagin
World Chat Champion



Joined: 08 Nov 2010
Karma :

PostPosted: 16:13 - 31 Jul 2015    Post subject: Reply with quote

Could the access modes for /etc/crontab have changed somehow?
IIRC it has to be:
-rw-r--r-- root root

I'm fairly certain cron won't do anything if any other user has access rights to crontab.
If the rights look ok check for sneeky acl rights with:
getfacl /etc/crontab
____________________
They're coming to take me away, ho-ho, hee-hee, ha-haaa, hey-hey,
the men in white coats are coming to take me away.
Yamaha Vity -> YBR125 -> FZS600 Fazer -> FZ1-S Fazer
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

duhawkz
World Chat Champion



Joined: 03 Dec 2006
Karma :

PostPosted: 16:17 - 31 Jul 2015    Post subject: Reply with quote

have you tried restarting cron?

sudo service cron restart
____________________
"The guy is a worthless cunt and I honestly believe I would be a slightly happier person if he died." - Chris-Red
 Back to top
View user's profile Send private message You must be logged in to rate posts

mudcow007
World Chat Champion



Joined: 01 Feb 2012
Karma :

PostPosted: 16:27 - 31 Jul 2015    Post subject: Reply with quote

hmmm

running sudo cron restart

i get

cron: cant lock /var/run/crond.pid, otherpid may be 5575: resource temporarily unavailable
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

mudcow007
World Chat Champion



Joined: 01 Feb 2012
Karma :

PostPosted: 16:30 - 31 Jul 2015    Post subject: Reply with quote

weirdly, it just started working!?

cheers guys for your help, i dont know what i changed but it lives muhahahah (evil laugh)
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

ScaredyCat
World Chat Champion



Joined: 19 May 2012
Karma :

PostPosted: 16:34 - 31 Jul 2015    Post subject: Reply with quote

Has the content of the call file changed or anything in the asterisk extensions.conf changed?

You can also turn on greater verbosity in asterisk to see if they are being processed or if there's an error

Code:
asterisk -r

core set verbose 9999

____________________
Honda CBF125 ➝ NC700X
Honda CBF125 ↳ Speed Triple
 Back to top
View user's profile Send private message You must be logged in to rate posts

ScaredyCat
World Chat Champion



Joined: 19 May 2012
Karma :

PostPosted: 16:36 - 31 Jul 2015    Post subject: Reply with quote

mudcow007 wrote:
weirdly, it just started working!?


How many people have access to this machine?
____________________
Honda CBF125 ➝ NC700X
Honda CBF125 ↳ Speed Triple
 Back to top
View user's profile Send private message You must be logged in to rate posts

Andy_Pagin
World Chat Champion



Joined: 08 Nov 2010
Karma :

PostPosted: 17:06 - 31 Jul 2015    Post subject: Reply with quote

ScaredyCat wrote:
mudcow007 wrote:
weirdly, it just started working!?


How many people have access to this machine?

More to the point how many root equivalents?
Might be an idea to check /var/log/secure for any suspicious logins.
____________________
They're coming to take me away, ho-ho, hee-hee, ha-haaa, hey-hey,
the men in white coats are coming to take me away.
Yamaha Vity -> YBR125 -> FZS600 Fazer -> FZ1-S Fazer
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts
Old Thread Alert!

The last post was made 8 years, 262 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.09 Sec - Server Load: 0.43 - MySQL Queries: 17 - Page Size: 67.33 Kb