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
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
-
- Posts: 13
- Joined: 2005-09-22 17:04
Re: need help adding program to boot sequence
The startup scripts are in /etc/init.dbanditti 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
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
# chmod +x /etc/init.d/MyScript
Then automatically create the init symlinks:
# update-rc.d MyScript defaults 80
Debian Sys Admin
http://www.tldp.org/LDP/sag/html/index.html
http://www.tldp.org/LDP/sag/html/index.html