Re: running at boot time & signals



-----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-----
.



Relevant Pages

  • Re: running at boot time & signals
    ... > is that, since it's running as part of init, it doesn't receive ... and thus can't receive any SIGINT generated by you. ... files are executed automatically on user logon. ... Lew Pitcher, IT Specialist, Enterprise Data Systems ...
    (comp.os.linux.development.system)
  • Re: Beta-testers required & Help wanted
    ... I plan to use my PPC machine for many years, ... Instead, you could use the poor man's break point, the quit ... hit a quitcommand, you should get dialog box with the Some useful comment ... quit("Got to init monsters."); ...
    (rec.games.roguelike.angband)
  • Re: panic: Going nowhere without my init!
    ... will just say "init: already running" and quit. ... bother to tell us. ... Dag-Erling Smørgrav - des@xxxxxx ...
    (freebsd-hackers)