feat: init - dynamic service discovery via init.toml
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
# MontaukOS init services
|
||||
#
|
||||
# Services are started in declaration order. Available fields:
|
||||
# path executable to spawn (required)
|
||||
# name display name used in the boot log (defaults to the table id)
|
||||
# enabled whether init should consider the service (defaults to true)
|
||||
# wait wait for the process to exit before continuing (defaults to true)
|
||||
# optional quietly skip the service when its executable is absent
|
||||
# fallback service id to start if spawning this service fails
|
||||
# fallback_only define the service for fallback use without starting it normally
|
||||
|
||||
[services.dhcp]
|
||||
path = "0:/os/dhcp.elf"
|
||||
enabled = true
|
||||
wait = false
|
||||
|
||||
[services.ntp]
|
||||
path = "0:/os/ntp.elf"
|
||||
name = "network time"
|
||||
enabled = true
|
||||
wait = false
|
||||
|
||||
[services.printd]
|
||||
path = "0:/os/printd.elf"
|
||||
name = "print spooler"
|
||||
enabled = true
|
||||
wait = false
|
||||
optional = true
|
||||
|
||||
[services.login]
|
||||
path = "0:/os/login.elf"
|
||||
enabled = true
|
||||
fallback = "desktop"
|
||||
|
||||
[services.desktop]
|
||||
path = "0:/os/desktop.elf"
|
||||
enabled = true
|
||||
fallback = "shell"
|
||||
fallback_only = true
|
||||
|
||||
[services.shell]
|
||||
path = "0:/os/shell.elf"
|
||||
enabled = true
|
||||
fallback_only = true
|
||||
Reference in New Issue
Block a user