aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/files/sinit-launch-services.boot
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-02-07 17:34:55 +0300
committerCem Keylan <cem@ckyln.com>2020-02-07 17:34:55 +0300
commit23055b3d7da4bfef00d302e91b87fa36f6f9be96 (patch)
tree27ccbaa55473bacd1d48c17de841584fb2c12fca /core/sinit/files/sinit-launch-services.boot
parentc416432b8cc934b768a19242b976c159f07a22a5 (diff)
downloadrepository-23055b3d7da4bfef00d302e91b87fa36f6f9be96.tar.gz
sinit: add changes
* Use official sources * Switch to 1.0 * Remove the ubase dependency * Use kpow by Dylan Araps for shutdown
Diffstat (limited to 'core/sinit/files/sinit-launch-services.boot')
-rw-r--r--core/sinit/files/sinit-launch-services.boot20
1 files changed, 8 insertions, 12 deletions
diff --git a/core/sinit/files/sinit-launch-services.boot b/core/sinit/files/sinit-launch-services.boot
index 4cbb0570..6ba14057 100644
--- a/core/sinit/files/sinit-launch-services.boot
+++ b/core/sinit/files/sinit-launch-services.boot
@@ -1,14 +1,10 @@
-# we are going to start runit and getty here
+# We are going to start runit and getty here
-sinit_run_getty() {
- for getty in 1 2 3 4 5 6; do
- respawn /sbin/getty 38400 tty${getty} 2>&1 &
- done
-}
+# Uncomment to enable gettys
+# for getty in 1 2 3 4 5 6 ; do
+# while :; do /sbin/getty tty${getty} 0 linux ; done & # busybox getty
+# # while :; do /sbin/getty tty${getty} linux ; done & # ubase getty
+# done
-sinit_runit() {
- respawn /usr/bin/runsvdir -P /var/service &
-}
-
-[ "$SINIT_ENABLE_GETTY" = 1 ] && sinit_run_getty
-[ "$SINIT_ENABLE_RUNIT" = 1 ] && sinit_runit
+# Uncomment enable runit services
+# while :; do /usr/bin/runsvdir -P /var/service ; done &