Startup Script

Eric Thelin plug-discuss@lists.plug.phoenix.az.us
Thu, 26 Jun 2003 13:35:23 -0700 (MST)


nohup itself will keep a process from receiving the signal that
indicates that the shell closed.  Then you put it into the background so
that you can continue to use the shell for other things.  Most
distributions have a script like rc.local that runs last and is an easy
place for your custom commands.  Such a local startup script would be a
very easy place for you to put the command (and you wouldn't even need
the nohup because there sould be no regular shell to send the signal but
you would still need the &).  But alas debian doesn't seem to have an
equivalent of the rc.local.  Hopefully one of the debian advocates on
this list will feel the disturbance in the force as I complain about
debian and tell me I am just missing it.  If the debian masters fail to
correct me I would say the best thing to do for your program is to read
through the other startup scripts in /etc/init.d/ then pick one to copy
and modify.  You would then need to create a symlink to that script in
/etc/rc3.d/ with a name such as S80veritas where the S80 means to it is
a start script and to execute it after S70 but before S90.

Eric

On Thu, 26 Jun 2003, KevinO wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Thomas Cameron wrote:
> > But doesn't necessarily force detachment from the parent process (shell).
> > nohup does a better job.
>
> So, if I understand you :
>
> nohup <command> &
>
> Is what you are suggesting?
>
> (Try it w/o the ampersand)
>
> - --
> KevinO
>
> Hickory Dickory Dock, The mice ran up the clock, The clock struck one, The
> others escaped with minor injuries.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQE++q+VjBS1mMJB+bQRAqk/AJ45noSbIiDZQ0urZfHdExUL1dtSagCeKcgd
> wTcFlsov9zgNRGn+CSHbZ/Q=
> =iijI
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>