Review your favorite Linux distribution.
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 01-11-2006, 12:04 PM   #1
Registered: Jan 2006
Distribution: Ubuntu
Posts: 42

Rep: Reputation: 15
Using Cron to start software on reboot

Could anyone give me step by step instructions to run an application on reboot of a server using Cron?
Old 01-11-2006, 12:26 PM   #2
Senior Member
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
only use cron if you need to run something repeatedly on a schedule.

if you simply want to load a program on boot then you add the command to a file like rc.local (that is what is used on slackware, not sure for debian) ask in the debian area what file loads apps on boot.
Old 01-11-2006, 12:37 PM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
You don't want cron---read up on the various init and rc files---that is where you put things to start and stop on bootup.

For example, take a look at /etc/rc.d/rc5.d (or equivalent on your machine) You should see a whole bunch of filenames preceded by K or S.
Everything with a K is killed on entering the runlevel, and everything with S is started.

Search on this forum and on Google for more info on the startup process and the various initialization files.
Old 01-12-2006, 04:41 AM   #4
Registered: Jan 2006
Distribution: Ubuntu
Posts: 42

Original Poster
Rep: Reputation: 15
I looked into starting the application via init and cron and cron looked simpler
Apparently you can start things on reboot by using the @reboot option i just havent figured out why its not working as expected.


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
cannot start cron; FIFO exists deverest Solaris / OpenSolaris 17 04-14-2008 09:55 AM
How do I start graphical applications via cron? p0ser Linux - Software 7 01-21-2005 02:44 PM
cron reboot problem tcpdump Linux - Software 3 05-14-2004 06:05 AM
Cron Reboot Virtus Linux - Software 3 01-13-2003 07:42 AM
Using cron to start a program at reboot ? s&j Linux - General 2 06-22-2002 04:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:39 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