Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

need help adding program to boot sequence

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
banditti
Posts: 5
Joined: 2005-09-29 06:12
Location: Phoenix

need help adding program to boot sequence

#1 Post by banditti »

I am running sarge as a server, no gui. I would like to have a program automatically start during the boot sequence so I can stop doing it manually. I guess that starting last is great since that is what happens now.


TIA

BugFactory
Posts: 13
Joined: 2005-09-22 17:04

#2 Post by BugFactory »

You can try to add the command line at the end of /etc/profile.

However, seeing my luck with Debian, it might or might not work.

Other file choices : /home/<account_name>/.bashrc
/home/<account_name>/.bash_profile

User avatar
dawgie
Posts: 430
Joined: 2004-06-16 21:30
Location: New Hampshire USA

Re: need help adding program to boot sequence

#3 Post by dawgie »

banditti wrote:I would like to have a program automatically start during the boot sequence so I can stop doing it manually. I guess that starting last is great since that is what happens now.

TIA
The startup scripts are in /etc/init.d
There is an example script called "skeleton"
You modify a copy or create a script file that starts your program(s) in /etc/init.d

The script could be as simple as:

Code: Select all

#! /bin/sh
# Some comments

/path/to/your/program

Make the script executable:

# chmod +x /etc/init.d/MyScript

Then automatically create the init symlinks:

# update-rc.d MyScript defaults 80

Post Reply