Merge branch 'init_rework10' into 'main'
init: Migrate the base services from init scripts See merge request redox-os/base!219
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
[unit]
|
||||
description = "Basic services"
|
||||
requires_weak = [
|
||||
"00_tmp",
|
||||
"00_ipcd.service",
|
||||
"00_ptyd.service",
|
||||
"00_pcid-spawner.service",
|
||||
]
|
||||
@@ -0,0 +1,6 @@
|
||||
[unit]
|
||||
description = "IPC daemon"
|
||||
|
||||
[service]
|
||||
cmd = "ipcd"
|
||||
type = "notify"
|
||||
@@ -0,0 +1,6 @@
|
||||
[unit]
|
||||
description = "PCI driver spawner"
|
||||
|
||||
[service]
|
||||
cmd = "pcid-spawner"
|
||||
type = "oneshot"
|
||||
@@ -0,0 +1,6 @@
|
||||
[unit]
|
||||
description = "PTY daemon"
|
||||
|
||||
[service]
|
||||
cmd = "ptyd"
|
||||
type = "notify"
|
||||
@@ -0,0 +1,7 @@
|
||||
[unit]
|
||||
description = "Sudo background handler"
|
||||
|
||||
[service]
|
||||
cmd = "sudo"
|
||||
args = ["--daemon"]
|
||||
type = "oneshot_async"
|
||||
@@ -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
|
||||
@@ -0,0 +1,9 @@
|
||||
[unit]
|
||||
description = "Configure network using DHCP"
|
||||
requires_weak = [
|
||||
"10_smolnetd.service",
|
||||
]
|
||||
|
||||
[service]
|
||||
cmd = "dhcpd"
|
||||
type = "oneshot_async"
|
||||
@@ -0,0 +1,7 @@
|
||||
[unit]
|
||||
description = "Networking"
|
||||
requires_weak = [
|
||||
"00_base.target",
|
||||
"10_smolnetd.service",
|
||||
"10_dhcpd.service",
|
||||
]
|
||||
@@ -0,0 +1,9 @@
|
||||
[unit]
|
||||
description = "Network stack"
|
||||
requires_weak = [
|
||||
"00_pcid-spawner.service",
|
||||
]
|
||||
|
||||
[service]
|
||||
cmd = "smolnetd"
|
||||
type = "notify"
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user