schinit: the console job stops explaining itself in launchd's words

The manifest described its own fields by naming the thing they were
modelled on -- "in launchd terms this is a RunAtLoad + KeepAlive
daemon", and ThrottleInterval attributed to launchd by name. The design
debt is real and recorded in docs; a file shipped in /etc is not the
place to keep citing another system's trademarks.

What the fields do is unchanged, and so is every value. The comment that
survives says what the interval guards against, which is the part a
reader of this file actually needs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Nexoniarz 2026-08-15 15:59:29 +02:00
commit f4d5c671a7

View file

@ -1,8 +1,4 @@
# The interactive shell on the system console. # The interactive shell on the system console.
#
# In launchd terms this is a RunAtLoad + KeepAlive daemon: started when
# schinit loads, and restarted whenever it exits -- which for a shell is
# every time someone types `exit`.
Label = os.schos.console-shell Label = os.schos.console-shell
Program = /bin/sh Program = /bin/sh
@ -20,6 +16,5 @@ StandardOut = /dev/console
StandardError = /dev/console StandardError = /dev/console
# Seconds between respawns. Guards against a shell that dies instantly # Seconds between respawns. Guards against a shell that dies instantly
# taking the machine with it; launchd calls this ThrottleInterval and
# defaults to 10. One is enough for a shell someone just exited on purpose. # defaults to 10. One is enough for a shell someone just exited on purpose.
ThrottleInterval = 1 ThrottleInterval = 1