aboutsummaryrefslogtreecommitdiff
path: root/contrib/getty.boot
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-09-16 15:55:20 +0300
committerCem Keylan <cem@ckyln.com>2020-09-16 15:55:20 +0300
commit79fafa3c6aa574f641d634fd3e136f29ec0ee9cf (patch)
tree2047c83784422790809db925811e6a50a971bc02 /contrib/getty.boot
parentee006dbf0743bd3276ca3cdd1d6b5b563aa933f6 (diff)
downloadinit-79fafa3c6aa574f641d634fd3e136f29ec0ee9cf.tar.gz
respawn: add seperate shell utility instead of running while loops
Technically, these are the same shell commands, but since they are run by a separate shell, they are easier to predict and easier to kill.
Diffstat (limited to 'contrib/getty.boot')
-rw-r--r--contrib/getty.boot4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/getty.boot b/contrib/getty.boot
index bb5a5e3..eaf90d9 100644
--- a/contrib/getty.boot
+++ b/contrib/getty.boot
@@ -1,4 +1,4 @@
for getty in 1 2 3 4 5 6; do
- while :; do /sbin/getty 38400 tty${getty} 2>&1 ; done & # busybox getty
- while :; do /sbin/getty /dev/tty${getty} linux 2>&1 ; done & # ubase getty
+ respawn getty 38400 tty${getty} 2>&1 ; done & # busybox getty
+ respawn getty /dev/tty${getty} linux 2>&1 ; done & # ubase getty
done