Re: How to make a program automatically start at startup
From: Andrei Voropaev (avorop_at_mail.ru)
Date: 12/30/04
- Next message: Kasper Dupont: "Re: How to make a program automatically start at startup"
- Previous message: Gevadas A. Akkara: "How to make a program automatically start at startup"
- In reply to: Gevadas A. Akkara: "How to make a program automatically start at startup"
- Next in thread: Kasper Dupont: "Re: How to make a program automatically start at startup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Dec 2004 08:00:07 GMT
On 2004-12-30, Gevadas A. Akkara <gevadas@yahoo.com> wrote:
> Hi
>
> I have made a c executable .I want this program to run automatically
> each time the system reboots.
>
> I tried by putting the program in /etc,/etc/init.d,rc.d ,rc0.d
> directories. Still the program is not starting automatically .
>
> I am using RedHat Linux.
Try putting it into /etc/init.d and then creating symlink to it from
rc3.d. Well, you may have to put it also into rc4.d, depends on which
run level you are boot in by default. The symlink should be named like
S42myprog. The important part is this 'S42'. '42' is an arbitrary number
that defines when your program shall be run.
Beware. Your program will receive single parameter 'start'. In general
it would be good that you read anything on SysV Init before fiddling
with it. Google it.
Also, quite possible, that it is enough to put your program into
.bash_profile in your home directory, and then it'll be run every time
when you login.
- Next message: Kasper Dupont: "Re: How to make a program automatically start at startup"
- Previous message: Gevadas A. Akkara: "How to make a program automatically start at startup"
- In reply to: Gevadas A. Akkara: "How to make a program automatically start at startup"
- Next in thread: Kasper Dupont: "Re: How to make a program automatically start at startup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|