Re: how to make it auto start?



On 2006-04-21 13:01, Ertugrul Soeylemez wrote:
birre <spamtrap@xxxxxxxxxxxx> (06-04-21 12:27:46):

i am using Fedoracore, if i want the OS to run a program
automatically, after the OS was started.

what should i do?
The kernel start a process called init (PID 1)

[...]

init is the life in your system, so if you start there, you understand
it all in only a few years :-)

Unfortunately, this doesn't answer Nick's question in any way, because
distributions bring their own higher level mechanisms to start processes
at boot time, while 'init' is at the system level. This would be like
connecting certain wires to turn on the TV instead of just using the
remote.

Check out the Fedora Core documentation for how to run services, if
that's what you meant. However, if you just mean to start some program
when you login into your desktop, then you'll find facilities to do that
in your desktop package (KDE, Gnome, or whatever). In that case, just
look through your configuration utility. You'll find it somewhere.


Regards.

They all start with /etc/inittab , and from there you can see what every
distributions do, and what other rc files they source.

So "start with /etc/inittab , man init" is the generic answer that apply
to ALL distributions.

Ok, someone can just say a file, for example boot.local , but we don't know what the OP intended to start. (but it was "after the OS", so boot.local can be to early, and when logged in, it can be to late)
The only way to understand it is to follow it from the start (/etc/inittab)

Just read the rc script started by inittab, then read the scripts started by rc, and then you find lots of rc files starting services
in a logical structure.

Most of the files are targets for replacement when you patch, so they may source a local version if exist, where you can add your local changes without losing it when doing update.
But all this is clear once you read the scripts.

/birre
.



Relevant Pages

  • Re: Is Linux BSD or System V ?
    ... SysV-style init scripts or BSD-style init scripts?". ... Neglecting as others have mentioned that it can be set to use the SysV inits. ... Linux Torvalds is... ...
    (comp.os.linux.misc)
  • Re: Is Linux BSD or System V ?
    ... SysV-style init scripts or BSD-style init scripts?". ... means it is significantly like SysV or BSD. ... Linux Torvalds is... ...
    (comp.os.linux.misc)
  • Re: Any one followed "how to build a minimal linux system from source code" and succeded?
    ... > The book only says copy the init scripts from the host, ... you could download a small Linux distro like tomsrtbt or baslinux and ...
    (comp.os.linux.setup)
  • Re: Q: SuSeconfig renames files in rc5.d?
    ... >> I have had a similar issue, but in my case both init scripts involved ... > # BEGIN INIT INFO ...
    (alt.os.linux.suse)
  • Re: Prob w/ virtual terminals
    ... it uses scripts in the ... There's not rule forcing the use of a System V style init. ... Many distros are experimenting with init replacements. ... Even a commercial system like Solaris has replaced the old Sys V style ...
    (comp.os.linux.setup)