1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-06-05 22:19:21 +02:00

Splitting the build system for base and gui images

This commit is contained in:
j1nx
2023-04-08 14:42:52 +02:00
parent d2ec98cd4f
commit 7b0a01bcf7
3762 changed files with 12 additions and 5052 deletions

View File

@@ -0,0 +1,18 @@
#
# Note that two different ALSA card state management schemes exist and they
# can be switched using a file exist check - /etc/alsa/state-daemon.conf .
#
[Unit]
Description=Save/Restore Sound Card State
ConditionPathExists=!/etc/alsa/state-daemon.conf
ConditionPathExistsGlob=/dev/snd/control*
ConditionPathExists=/etc/voicecard/asound.state
[Service]
Type=oneshot
RemainAfterExit=true
ExecStartPre=/bin/mkdir -p /run/alsa
ExecStart=-/usr/sbin/alsactl -E HOME=/run/alsa -f /etc/voicecard/asound.state restore
ExecStop=-/usr/sbin/alsactl -E HOME=/run/alsa -f /etc/voicecard/asound.state store

View File

@@ -0,0 +1,5 @@
[Unit]
Description=D-Bus System Message Bus Socket
[Socket]
ListenStream=/run/dbus/system_bus_socket

View File

@@ -0,0 +1,10 @@
[Unit]
Description=OVOS ZRAM swap
Requires=zram-swap.service
After=zram-swap.service
[Swap]
What=/dev/zram0
[Install]
WantedBy=swap.target

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Configure multigenerational LRU
ConditionPathExists=/sys/kernel/mm/lru_gen/enabled
[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo 1 > /sys/kernel/mm/lru_gen/min_ttl_ms"
[Install]
WantedBy=basic.target

View File

@@ -0,0 +1,16 @@
[Unit]
Description=Admin PHAL
[Service]
#Type=notify
ExecStart=/usr/libexec/mycroft-systemd-admin-phal
#TimeoutStartSec=1m
#TimeoutStopSec=1m
Restart=on-failure
#StartLimitInterval=5min
#StartLimitBurst=4
#StartLimitAction=reboot-force
#WatchdogSec=30s
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,16 @@
[Unit]
Description=OVOS First boot run script
DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-remount-fs.service
Before=sysinit.target shutdown.target
ConditionPathIsReadWrite=/etc
ConditionPathExists=/etc/firstboot
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/ovos-config
[Install]
WantedBy=sysinit.target

View File

@@ -0,0 +1,6 @@
[Unit]
Description=OVOS zram targets
Documentation=man:systemd.target(5)
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,8 @@
[Unit]
Description=OpenVoiceOS - Mycroft GUI Interface
Documentation=man:systemd.special(7)
Requires=multi-user.target
Wants=mycroft-gui.service
Conflicts=rescue.service rescue.target
After=multi-user.target rescue.service rescue.target
AllowIsolate=yes

View File

@@ -0,0 +1,12 @@
[Unit]
Description=PulseAudio Sound System
After=syslog.target
After=avahi-daemon.service network.target
[Service]
ExecStart=/usr/bin/pulseaudio --system --daemonize=no
Restart=always
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,8 @@
[Unit]
Description=RPCbind Server Activation Socket
[Socket]
ListenStream=/run/rpcbind.sock
[Install]
WantedBy=sockets.target

View File

@@ -0,0 +1,21 @@
[Unit]
Description=Shairport-sync
Wants=sound.target
After=sound.target
Wants=network-online.target
After=network-online.target
After=pulseaudio.service
Requires=avahi-daemon.service
After=avahi-daemon.service
[Service]
Type=simple
User=mycroft
# Avahi daemon needs some time until fully ready
ExecStartPre=/bin/sleep 3
ExecStart=/usr/bin/shairport-sync
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,15 @@
[Unit]
Description=OVOS ZRAM swap
DefaultDependencies=no
Before=dev-zram0.swap
RefuseManualStart=true
RefuseManualStop=true
[Service]
Type=oneshot
ExecStart=/usr/libexec/ovos-zram -t swap
RemainAfterExit=true
StandardOutput=null
[Install]
WantedBy=ovos-zram.target