init: Migrate the base services from init scripts

And move them into the base repo.
This commit is contained in:
bjorn3
2026-04-10 22:45:39 +02:00
parent 05ab0a2633
commit 20429746f8
11 changed files with 63 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
[unit]
description = "Basic services"
requires_weak = [
"00_tmp",
"00_ipcd.service",
"00_ptyd.service",
"00_pcid-spawner.service",
]
+6
View File
@@ -0,0 +1,6 @@
[unit]
description = "IPC daemon"
[service]
cmd = "ipcd"
type = "notify"
+6
View File
@@ -0,0 +1,6 @@
[unit]
description = "PCI driver spawner"
[service]
cmd = "pcid-spawner"
type = "oneshot"
+6
View File
@@ -0,0 +1,6 @@
[unit]
description = "PTY daemon"
[service]
cmd = "ptyd"
type = "notify"
+7
View File
@@ -0,0 +1,7 @@
[unit]
description = "Sudo background handler"
[service]
cmd = "sudo"
args = ["--daemon"]
type = "oneshot_async"
+4
View File
@@ -0,0 +1,4 @@
# FIXME change this to a service unit
# clear and recreate tmpdir with 0o1777 permission
rm -rf /tmp
mkdir -m a=rwxt /tmp
+9
View File
@@ -0,0 +1,9 @@
[unit]
description = "Configure network using DHCP"
requires_weak = [
"10_smolnetd.service",
]
[service]
cmd = "dhcpd"
type = "oneshot_async"
+7
View File
@@ -0,0 +1,7 @@
[unit]
description = "Networking"
requires_weak = [
"00_base.target",
"10_smolnetd.service",
"10_dhcpd.service",
]
+9
View File
@@ -0,0 +1,9 @@
[unit]
description = "Network stack"
requires_weak = [
"00_pcid-spawner.service",
]
[service]
cmd = "smolnetd"
type = "notify"
+1 -1
View File
@@ -6,5 +6,5 @@ requires_weak = [
"40_ps2d.service",
"40_bcm2835-sdhcid.service",
"40_hwd.service",
"40_pcid-spawner.service",
"40_pcid-spawner-initfs.service",
]