-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
gregg wrote:
> bram4 wrote:
>
>> If you have a look at /etc/rc.d/rc.M, which is executed when going
>> multi-user, then you'll see that it executes the other scripts in
>> /etc/rc.d .
>> Thus, if you create scripts for your own service, you'll have to load
>> them from rc.M.
>
>
> Yes, well, i did that ( I mean look into rc.M)
> I don't like the idea of touching it, so I usually load this from
> rc.local (which seems more logical).
>
>
>> And you have to give the argument (start) yourself, like:
>>
>> if [ -x /etc/rc.d/rc.postfix ]; then
>> . /etc/rc.d/rc.postfix start
>> fi
>>
>> which would execute rc.postfix only if it's chmod +x
>
>
> Right, okay for that.
>
> It's just that, reading from the book, well, it seemed only a chmod on
> any script in rc.d was needed.
> Apparently, it means chmod'ing a script _already_ present in rc.M
>
> Either my English is too poor, or it's rather ambiguous.
> (It may very well be the first, and since I'm French you can bet lack of
> intelligence does not help me either...).
>
> Anyway, thank you for the answer.
> (rc.M is the one launching)
>
> And I reckon there is no error message (in logs or on screen) since
> nothing is launched !
>
>
> I could issue a foreach loop in rc.M to launch any script chmod'd +x in
> the directory, but that would conflict with what's done already -- and
> especially what is not to be done: e.g. rc.K)
>
> Creating another directory does give me satisfaction, for it would make
> me move scripts I want in it (and not keep it in rc.d)
>
> Maybe renaming scripts in rc.local.name_of_service_wanted_here, and
> create a foreach loop in rc.local ?
> Mmmh.
> Any ideas, you all veterans :-)
>
>
>
>> BIG BROTHER IS WATCHING YOU
>
>
> And who the hell is watching HIM ?!
> And especially, what happens when Big Brother crosses a mirror ?
> :-)
>
> ++
If you only have two scripts you want to start, I'd put them in
rc.local. It's not the most elegant, but it's the fastest way.
Bram4
P.S.
J'vois pas le problème d'être francophone... ;-D
- --
BIG BROTHER IS WATCHING YOU
www.anti-dmca.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
iD8DBQFCVD1Zsv7ahDE9W98RAjKqAJ48MAB8ZYcSbZApUWX0a8 Gz6bmbPACgipMB
oiP2vzd8+cXSLhOzysMHmnQ=
=2xtM
-----END PGP SIGNATURE-----