Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-08-2010, 05:01 AM   #1
LQ Newbie
Registered: Feb 2010
Posts: 22

Rep: Reputation: 0
Configuring start-up applications

Hi all,
I would like to configure my server to automatically launch a script at boot up time (i.e. without the need to log in), but I got lost in services, session-managed and non-session-managed applications. Still, I'm confused about whether crontabs for each user become automatically active at boot up.
Could anybody help?

Last edited by zeroquaranta; 03-08-2010 at 05:05 AM.
Old 03-08-2010, 06:20 AM   #2
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Boot script organisation is distro-specific. Which distro are you using?

As long as crond is started at boot, it processes all the crontabs (unless it is started with a -d option with the wring directory). Use ps -ef | grep cron to see if it is running.
Old 03-08-2010, 06:31 AM   #3
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
Generally you can accomplish this by calling your script from /etc/rc.local or putting a "@reboot command" entry in a user's crontab, but again it is distro-specific.
Old 03-09-2010, 02:50 AM   #4
LQ Newbie
Registered: Feb 2010
Posts: 22

Original Poster
Rep: Reputation: 0
Ok. I'm using RHEL 5.4. Basically, my aim is to get my server "power cut proof", without the need to manually launch scripts (even though I know power cuts can always cause unpredictable things).
So, my understanding is that I probably have nothing to do for crontab.
As for automatically launch scripts, I will check the 'rc.local' thing to see if it works.
Just for curiosity, what about the "session-managed startup applications" ? It's applications associated to a specific user which gets automatically started when the user logs in (i.e. starts a session)?
Old 03-09-2010, 01:39 PM   #5
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Rep: Reputation: Disabled
Create a daemon script.
Use 'chkconfig --add <script_name>' to add the script.
Use 'chkconfig <script_name> on' to activate the script during the boot sequence (init levels and starting/closing order have to be defined in your script).
If you want to start the script immediately, then you can use service <script_name> start

Be aware that the daemon script has a header that has to be implemented correctly to make this to work. The script has to be in directory /etc/rc.d/init.d.


crontab, session, startup

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
Configuring User Permissions for Applications Completely Clueless Mandriva 10 05-01-2009 12:45 AM
start two applications with one icon pepsimachine15 Linux - Software 20 07-07-2008 10:56 PM
plrblem configuring LTSP server for local applications shishirkotkar Linux - Software 0 04-14-2008 10:36 AM
fc2-gnome : Applications dont start / very slow to start nox104 Linux - Software 0 08-18-2004 08:53 PM
Cannot start applications in blackbox demiurge Mandriva 0 05-29-2004 03:03 AM > Forums > Linux Forums > Linux - Server

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