Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-27-2009, 06:28 AM   #1
Registered: Aug 2009
Posts: 228

Rep: Reputation: 30
Inquiry:How to make crontab job permanent even after server reboot?

Dear All
Please be informed that I have an application that needs my Linux server to be rebooted automatically at pre-specified times . To this end , I set its crontab as the followings :
30 15 * * * reboot
But after the first server reboot , the crontab job will be lost and the other subsequent reboots will not get through . Can you please do me favor and let me know how can I make it as permanent even after server reboot ?
Let me thank you in advance
Old 10-27-2009, 06:49 AM   #2
Registered: Oct 2009
Location: Amsterdam
Distribution: CentOS,Fedora,Puppy
Posts: 62

Rep: Reputation: 20
Rebooting should not alter the crontab at all, check your cron log for more info ( /var/log/cron probably )
Old 10-27-2009, 03:53 PM   #3
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
30 15 * * * /sbin/reboot
cron's $PATH isn't set to much, so you may need to specify the /full/path/to/executable


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab job not executing.... mia_tech Linux - Newbie 6 08-31-2009 02:42 PM
Personal crontab does not run after reboot of RHEL5 server prevere Linux - Newbie 2 05-20-2008 11:02 AM
Crontab changes not permanent Nylex Linux - General 4 07-19-2007 07:08 PM
Run crontab job sunhui Linux - Software 2 05-16-2007 08:35 PM
crontab job Thulemanden Linux - Software 2 07-09-2006 06:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration