aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/files/sinit-launch-services.boot
diff options
context:
space:
mode:
Diffstat (limited to 'core/sinit/files/sinit-launch-services.boot')
-rw-r--r--core/sinit/files/sinit-launch-services.boot14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/sinit/files/sinit-launch-services.boot b/core/sinit/files/sinit-launch-services.boot
new file mode 100644
index 00000000..4d4fad6a
--- /dev/null
+++ b/core/sinit/files/sinit-launch-services.boot
@@ -0,0 +1,14 @@
+# we are going to start runit and getty here
+
+sinit_run_getty() {
+ for getty in 1 2 3 4 5 6; do
+ ubase-box respawn /sbin/getty 38400 tty${getty} 2>&1 &
+ done
+}
+
+sinit_runit() {
+ ubase-box respawn /usr/bin/runsvdir -P /var/service &
+}
+
+[ "$SINIT_ENABLE_GETTY" = 1 ] && sinit_run_getty
+[ "$SINIT_ENABLE_RUNIT" = 1 ] && sinit_runit