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:
@@ -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
|
||||
|
@@ -0,0 +1,5 @@
|
||||
[Unit]
|
||||
Description=D-Bus System Message Bus Socket
|
||||
|
||||
[Socket]
|
||||
ListenStream=/run/dbus/system_bus_socket
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=OVOS zram targets
|
||||
Documentation=man:systemd.target(5)
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@@ -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
|
@@ -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
|
||||
|
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=RPCbind Server Activation Socket
|
||||
|
||||
[Socket]
|
||||
ListenStream=/run/rpcbind.sock
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
@@ -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
|
@@ -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
|
Reference in New Issue
Block a user