1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-02-09 08:28:50 +01:00

MycroftOS: Migrate splash updates into systemd drop-in files

This for better management and in preperation for easy BAR update
This commit is contained in:
j1nx 2020-04-16 10:59:59 +02:00
parent d4e48a0db7
commit 00e090edc5
26 changed files with 32 additions and 20 deletions

View File

@ -10,7 +10,6 @@ ConditionPathExists=/etc/firstboot
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=/bin/psplash-write "MSG Preparing for first boot"
ExecStart=/usr/sbin/firstboot
[Install]

View File

@ -5,7 +5,6 @@ Before=avahi-daemon.service
[Service]
Type=oneshot
ExecStartPre=/bin/psplash-write "MSG Setting up hostname"
ExecStart=/bin/sh -c "hostnamectl set-hostname MycroftOS-`sed 's/://g' /sys/class/net/eth0/address | tail -c 7`"
[Install]

View File

@ -6,8 +6,6 @@ After=mycroft.service
[Service]
User=mycroft
WorkingDirectory=/home/mycroft
ExecStartPre=/bin/psplash-write "MSG Starting Mycroft A.I. audio service"
ExecStartPre=/bin/sleep 2
ExecStart=mycroft-audio
StandardOutput=file:/var/log/mycroft/audio.log
StandardError=file:/var/log/mycroft/audio.error.log

View File

@ -7,8 +7,6 @@ After=mycroft-messagebus.service
[Service]
User=mycroft
WorkingDirectory=/home/mycroft
ExecStartPre=/bin/psplash-write "MSG Starting Mycroft A.I. enclosure service"
ExecStartPre=/bin/sleep 2
ExecStart=mycroft-enclosure-client
StandardOutput=file:/var/log/mycroft/enclosure.log
StandardError=file:/var/log/mycroft/enclosure.error.log

View File

@ -6,8 +6,6 @@ After=mycroft.service
[Service]
User=mycroft
WorkingDirectory=/home/mycroft
ExecStartPre=/bin/psplash-write "MSG Starting Mycroft A.I. messagebus service"
ExecStartPre=/bin/sleep 2
ExecStart=mycroft-messagebus
StandardOutput=file:/var/log/mycroft/bus.log
StandardError=file:/var/log/mycroft/bus.error.log

View File

@ -6,8 +6,6 @@ After=mycroft.service
[Service]
User=mycroft
WorkingDirectory=/home/mycroft
ExecStartPre=/bin/psplash-write "MSG Starting Mycroft A.I. skills service"
ExecStartPre=/bin/sleep 2
ExecStart=mycroft-skills
StandardOutput=file:/var/log/mycroft/skills.log
StandardError=file:/var/log/mycroft/skills.error.log

View File

@ -6,8 +6,6 @@ After=mycroft.service
[Service]
User=mycroft
WorkingDirectory=/home/mycroft
ExecStartPre=/bin/psplash-write "MSG Starting Mycroft A.I. voice service"
ExecStartPre=/bin/sleep 2
ExecStart=mycroft-speech-client
StandardOutput=file:/var/log/mycroft/voice.log
StandardError=file:/var/log/mycroft/voice.error.log

View File

@ -6,8 +6,6 @@ After=pulseaudio.service
User=mycroft
WorkingDirectory=/home/mycroft
Type=oneshot
ExecStartPre=/bin/psplash-write "MSG Starting Mycroft A.I. software stack"
ExecStartPre=/bin/sleep 2
ExecStart=/bin/true
RemainAfterExit=yes

View File

@ -8,7 +8,6 @@ Before=sysinit.target shutdown.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=/bin/psplash-write "MSG Preparing system"
ExecStart=/usr/sbin/prepare_system
[Install]

View File

@ -5,9 +5,7 @@ After=alsa-restore.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=/bin/psplash-write "MSG Preparing respeaker configuration"
ExecStart=/usr/bin/seeed-voicecard
User=root
[Install]
WantedBy=sysinit.target

View File

@ -6,7 +6,6 @@ After=network.target time-sync.target sound.target avahi-daemon.service
[Service]
EnvironmentFile=-/etc/snapcast/snapclient
ExecStartPre=/bin/psplash-write "MSG Starting Snapcast client"
ExecStart=/usr/bin/snapclient $SNAPCLIENT_OPTS
# very noisy on stdout
StandardOutput=null

View File

@ -6,7 +6,6 @@ After=network.target time-sync.target avahi-daemon.service
[Service]
EnvironmentFile=-/etc/snapcast/snapserver
ExecStartPre=/bin/psplash-write "MSG Starting Snapcast server"
ExecStart=/usr/bin/snapserver $SNAPSERVER_OPTS
Restart=on-failure

View File

@ -9,7 +9,6 @@ After=pulseaudio.service
[Service]
Type=simple
ExecStartPre=/bin/psplash-write "MSG Starting Spotify connect"
ExecStart=/usr/bin/spotifyd --no-daemon
Restart=always
RestartSec=5

View File

@ -0,0 +1,2 @@
[Service]
ExecStartPre=-/bin/psplash-write "MSG Preparing for first boot"

View File

@ -0,0 +1,2 @@
[Service]
ExecStartPre=-/bin/psplash-write "MSG Setting up hostname"

View File

@ -0,0 +1,3 @@
[Service]
ExecStartPre=-/bin/psplash-write "MSG Starting Mycroft A.I. audio service"
ExecStartPre=-/bin/sleep 2

View File

@ -0,0 +1,3 @@
[Service]
ExecStartPre=-/bin/psplash-write "MSG Starting Mycroft A.I. enclosure service"
ExecStartPre=-/bin/sleep 2

View File

@ -0,0 +1,3 @@
[Service]
ExecStartPre=-/bin/psplash-write "MSG Starting Mycroft A.I. messagebus service"
ExecStartPre=-/bin/sleep 2

View File

@ -0,0 +1,3 @@
[Service]
ExecStartPre=-/bin/psplash-write "MSG Starting Mycroft A.I. skills service"
ExecStartPre=-/bin/sleep 2

View File

@ -0,0 +1,3 @@
[Service]
ExecStartPre=-/bin/psplash-write "MSG Starting Mycroft A.I. voice service"
ExecStartPre=-/bin/sleep 2

View File

@ -0,0 +1,3 @@
[Service]
ExecStartPre=-/bin/psplash-write "MSG Starting Mycroft A.I. software stack"
ExecStartPre=-/bin/sleep 2

View File

@ -0,0 +1,2 @@
[Service]
ExecStartPre=-/bin/psplash-write "MSG Preparing system"

View File

@ -0,0 +1,2 @@
[Service]
ExecStartPre=-/bin/psplash-write "MSG Preparing respeaker configuration"

View File

@ -0,0 +1,2 @@
[Service]
ExecStartPre=-/bin/psplash-write "MSG Starting Snapcast client"

View File

@ -0,0 +1,2 @@
[Service]
ExecStartPre=-/bin/psplash-write "MSG Starting Snapcast server"

View File

@ -0,0 +1,2 @@
[Service]
ExecStartPre=-/bin/psplash-write "MSG Starting Spotify connect"