[NTLUG:Discuss] Things to run at startup
George E. Lass
George.Lass at osc.com
Mon Dec 13 16:20:46 CST 1999
Bobby,
What I have done in the past is "clone"
one of the files in /etc/rc.d/init.d
and then create symbolic links to it
in /etc/rc.d/rc0.d thru rc6.d.
A good starting place would be to look at
/etc/rc.d/init.d/gpm (mouse startup/shutdown file)
If you look in /etc/rc.d/rc0.d you will see a
file called something like K15gpm which is a
symbolic link to gpm in /etc/rc.d/init.d
If you look in /etc/rc.d/rc2.d you will see a
file called something like S85gpm which is also a
symbolic link to gmp in /etc/rc.d/init.d
The way this all works is as follows:
During either startup or shutdown the system
"examines" all of the files in /etc/rc.d/rc.[init-level]
if the file starts with "K" it calls the file with a
parameter of "stop". If the file starts with a "S" it
calls the file with a a parameter of "start".
The reason for the number after the "S" or "K" is so
that you can sequence the startup or shutdown proceedure.
Hope this helps,
George
Bobby Wrenn wrote:
>
> What do I have to do to get a program to start when the system boots? I
> just want sshd to start every time the system comes up.
>
> Every xNIX ref I have gives every option for every possible
> configuration I might want. Problem is, I have to know the name of the
> file I want to edit first. I know what I want to do but I cannot find
> the name of the file I need to edit to make it happen.
>
> I know the answer is simple. I'm just missing part of the question.
>
> thanks and a hat tip,
> bj
>
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss
--
... Unix IS a user friendly O/S ...
(It's just picky about its friends)
More information about the Discuss
mailing list