Mailinglist Archive: opensuse (2269 mails)
| < Previous | Next > |
Re: [SLE] where to put commands to run at startup
- From: dahlqvist@xxxxxxxxxxxxxxxxxxxxxxxx (Anders Dahlqvist)
- Date: Thu, 12 Oct 2000 22:43:09 +0200
- Message-id: <00101222430900.01708@gnu>
You should not enter them in /etc/inittab!
Simple:If you want them to execute immediately after boot before you reach
any run-level you should put them in /etc/boot.local. That is probably what
you want.
More complicated but very efficient:
If you want them to execute at a certain run-level you should write a script
in /sbin/init.d/ and link it to /sbin/init.d/rcX.d where X is the appropriate
runlevel(s). Plural if you want to access the services the script provides at
several runlevels. The script should be linked to SYYsomething (the start
script) and KZZsomething (the kill script) - where YY and ZZ are numbers
between 00 and 99.
The principle should be clear if you study the contents of the
/sbin/init.d/rcX.d directories. There is a skeleton script that you can use
as a model - /sbin/init.d/skeleton. If you want to comply 100% whith the
SuSE rc-concept you should also make a link to /usr/sbin and call it
rcsomething.
Hope this helps
Anders
%x skrev Daniel Casey:
> On SuSE 6.4, where is the correct place to put some commands to run at
> startup?
>
> Can I put an entry in inittab to run a script that has my commands or
> is there someplace I can insert the commands directly?
>
> Thanks,
>
> Daniel
--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/support/faq
| < Previous | Next > |