Re: running at boot time & signals
- From: Lew Pitcher <Lew.Pitcher@xxxxxx>
- Date: Wed, 25 Jan 2006 14:28:13 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
maria wrote:
> Ah, beautiful. I used "wait", instead of "respawn", because I just
> want it to run once and then quit. But it's working perfectly. Thanks
> so much!
FWIW, "wait" makes init wait until the process ends.
You probably want "once", which allows init to proceed with the
remainder of inittab while the process in question is running (like
"respawn"), but does not rerun the process when it terminates.
As in
c1:1235:once:/bin/su - username -c /path </dev/tty1 >/dev/tty1 2>&1
or
1:2345:once:/local/bin/open -c 1 -l -w -- /local/sbin/dummy
You can read the manpage for inittab(5) ("man 5 inittab") for details on
what "respawn", "wait", and "once" do, along with the alternatives.
HTH
- --
Lew Pitcher, IT Specialist, Enterprise Data Systems
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFD19FMagVFX4UWr64RApQ/AJ4q+h1+S1rL2AQ5em+z/WHKXLwH/ACg0Ksv
+sZRn/HaA+D43FfRHNc5Rzo=
=bMCW
-----END PGP SIGNATURE-----
.
- References:
- running at boot time & signals
- From: maria
- Re: running at boot time & signals
- From: Lew Pitcher
- Re: running at boot time & signals
- From: maria
- Re: running at boot time & signals
- From: Lew Pitcher
- Re: running at boot time & signals
- From: maria
- running at boot time & signals
- Prev by Date: Re: Serial communication, detecting parity bits
- Next by Date: Re: how to subscribe for linux kernel mailing list
- Previous by thread: Re: running at boot time & signals
- Index(es):
Relevant Pages
|