aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/files/sinit-launch-services.boot
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-13 23:13:19 +0300
committerCem Keylan <cem@ckyln.com>2020-01-13 23:13:19 +0300
commit3e90bcf9811dd3dc5d397fbfe18d0ed84a4fac65 (patch)
treee181ca1b4ed5e5b38c0d17da89b259860798d3c1 /core/sinit/files/sinit-launch-services.boot
parent11b53c25d767fa16671bc0b42158e61c7a2de19f (diff)
downloadrepository-3e90bcf9811dd3dc5d397fbfe18d0ed84a4fac65.tar.gz
repository: move ubase and sinit to core
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