b7ec7f42e7
- /var/log and /var/run: override base.toml's 0o755 (root-only write) to 0o1777 (sticky-bit world-writable) so log/run daemons running under non-root users (messagebus, etc.) can create files in them. - 00_rtcd.service: remove invalid uid=0 field. The init service parser uses serde(deny_unknown_fields) and only accepts cmd, args, envs, inherit_envs, type — uid caused 'unknown field uid' parse error.
50 lines
1.2 KiB
TOML
50 lines
1.2 KiB
TOML
# Red Bear OS overrides for base init services.
|
|
#
|
|
# 00_base.service: stripped base setup (tmpdir only, no sudo — sudo runs from
|
|
# base.toml's 00_sudo.service). ipcd and ptyd are started by
|
|
# 00_ipcd.service and 00_ptyd.service from the base recipe.
|
|
# 00_pcid-spawner.service has been fully replaced by 00_driver-manager.service
|
|
# (defined in redbear-device-services.toml). The old pcid-spawner
|
|
# unit name is no longer used anywhere.
|
|
|
|
[packages]
|
|
zsh = {}
|
|
|
|
[[files]]
|
|
path = "/etc/init.d/00_base.service"
|
|
data = """
|
|
[unit]
|
|
description = "Base environment setup (tmpdir)"
|
|
|
|
[service]
|
|
cmd = "zsh"
|
|
args = ["-c", "rm -rf /tmp; mkdir -m a=rwxt /tmp"]
|
|
type = "oneshot"
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/init.d/20_audiod.service"
|
|
data = """
|
|
[unit]
|
|
description = "Audio multiplexer"
|
|
default_dependencies = false
|
|
|
|
[service]
|
|
cmd = "audiod"
|
|
type = "oneshot_async"
|
|
"""
|
|
|
|
# Override base.toml's /var/log and /var/run from 0o755 to 0o1777 so
|
|
# log/run daemons running under non-root users (messagebus, etc.) can
|
|
# write to them. Sticky bit is standard for /var/log and /var/run.
|
|
[[files]]
|
|
path = "/var/log"
|
|
data = ""
|
|
directory = true
|
|
mode = 0o1777
|
|
|
|
[[files]]
|
|
path = "/var/run"
|
|
data = ""
|
|
directory = true
|
|
mode = 0o1777 |