[Peeweelinux] autostart

[email protected] [email protected]
Wed, 12 Jun 2002 10:21:17 +0200


Hi,

Thank you for your solution, Troy, it works fine !


Guillaume PREVOST






Troy Engel <[email protected]> on 07/06/2002 18:27:35

Veuillez r�pondre � [email protected]

Pour :    [email protected]
cc :   (ccc : Guillaume Prevost/ALCATEL-SPACE)
Objet :   Re: [Peeweelinux] autostart



Guillaume,

If you've built your PWL with "SysV support" (most likely you have),
then the easiest (and more correct) thing to do is create a script that
lives in /etc/rcS.d/ directory (eg, "90mystuff").

On boot, the subsystem walks through this directory and executes all
scripts in order numerically, lowest to highest.  The problem with
rc.sysinit is that it's executed before any /etc/rcS.d/ scripts, which
may adversely affect your application.

It's then easy to do a Custom File Add on your initscript and keep it
seperate from the core PWL stuff.  I note, though, that loading modules
should take place in /etc/rc.modules, which is sourced by rc.sysinit if
it exists.

-te

[email protected] wrote:
>
>
> Thank you Ken for those detailed information. I will try your solution which
> seems to fulfil my dreams.
>
>
> Guillaume PREVOST
>
>
>
>
>
>
> "Ken Emmons, Jr." <[email protected]> on 07/06/2002 15:15:58
>
> Veuillez r�pondre � [email protected]
>
> Pour :    [email protected]
> cc :   (ccc : Guillaume Prevost/ALCATEL-SPACE)
> Objet :   Re: [Peeweelinux] autostart
>
>
>
>
> ------------------------------------------------------------------------
>
>
> Hi Guillaume,
>
> I have added my stuff to the end of the /etc/rc.sysinit script. In my case I
> load modules for RTLinux RTOS, but you could launch any programs or scripts.
> These are launched as root, so just be aware of any security issues. To modify
> the rc.sysinit you need to go to the project folder under peewee and then into
a
> folder called "custom" Then do this:
>
> mkdir etc
> cp ../mnt/etc/rc.sysinit  ./etc
>
>
> then you can edit your custom/etc/rc.sysinit file and it will be copied to
your
> target.
>
> hope this helps,
>
> ~Ken
>
> _______________________________________________
> Peeweelinux mailing list
> [email protected]
> http://mail.adis.on.ca/lists/listinfo/peeweelinux
>
>
>
>
>
>
>
>
>
>
>


--
Troy Engel, Systems Engineer
Hockey. Kinda like Figure Skating in a War Zone.

_______________________________________________
Peeweelinux mailing list
[email protected]
http://mail.adis.on.ca/lists/listinfo/peeweelinux