Startup Scripts
Craig Hagerman
craighagerman at gmail.com
Tue Sep 6 02:32:58 UTC 2005
On 9/5/05, David M. Carney <carney1979 at gmail.com> wrote:
>
> If I want to add my own startup script to be run at bootup, how do I go
> about doing it?
>
>
Write a script. put it in the /etc/init.d/ directory.
Lets say you called it FOO. You then run
% update-rc.d FOO defaults
You can check out
% man update-rc.d for more information. It is a Debian utility to install
scripts. The option "defaults" puts a link to start FOO in run levels 2, 3,
4 and 5. (and puts a link to stop FOO into 0, 1 and 6.)
By the way, can anyone tell me what command I can use to tell what run level
I am currently in?
Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050905/017f0141/attachment.html>
More information about the ubuntu-users
mailing list