LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-11-2006, 01:04 PM   #1
Azalar
Member
 
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, 01:26 PM   #2
Finlay
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, 01:37 PM   #3
pixellany
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, 05:41 AM   #4
Azalar
Member
 
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.
 
  


Reply


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 10:55 AM
How do I start graphical applications via cron? p0ser Linux - Software 7 01-21-2005 03:44 PM
cron reboot problem tcpdump Linux - Software 3 05-14-2004 07:05 AM
Cron Reboot Virtus Linux - Software 3 01-13-2003 08:42 AM
Using cron to start a program at reboot ? s&j Linux - General 2 06-22-2002 05:31 PM


All times are GMT -5. The time now is 03:04 AM.

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