mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-06-05 22:19:21 +02: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:
@ -10,7 +10,6 @@ ConditionPathExists=/etc/firstboot
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStartPre=/bin/psplash-write "MSG Preparing for first boot"
|
|
||||||
ExecStart=/usr/sbin/firstboot
|
ExecStart=/usr/sbin/firstboot
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -5,7 +5,6 @@ Before=avahi-daemon.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
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`"
|
ExecStart=/bin/sh -c "hostnamectl set-hostname MycroftOS-`sed 's/://g' /sys/class/net/eth0/address | tail -c 7`"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -6,8 +6,6 @@ After=mycroft.service
|
|||||||
[Service]
|
[Service]
|
||||||
User=mycroft
|
User=mycroft
|
||||||
WorkingDirectory=/home/mycroft
|
WorkingDirectory=/home/mycroft
|
||||||
ExecStartPre=/bin/psplash-write "MSG Starting Mycroft A.I. audio service"
|
|
||||||
ExecStartPre=/bin/sleep 2
|
|
||||||
ExecStart=mycroft-audio
|
ExecStart=mycroft-audio
|
||||||
StandardOutput=file:/var/log/mycroft/audio.log
|
StandardOutput=file:/var/log/mycroft/audio.log
|
||||||
StandardError=file:/var/log/mycroft/audio.error.log
|
StandardError=file:/var/log/mycroft/audio.error.log
|
||||||
|
@ -7,8 +7,6 @@ After=mycroft-messagebus.service
|
|||||||
[Service]
|
[Service]
|
||||||
User=mycroft
|
User=mycroft
|
||||||
WorkingDirectory=/home/mycroft
|
WorkingDirectory=/home/mycroft
|
||||||
ExecStartPre=/bin/psplash-write "MSG Starting Mycroft A.I. enclosure service"
|
|
||||||
ExecStartPre=/bin/sleep 2
|
|
||||||
ExecStart=mycroft-enclosure-client
|
ExecStart=mycroft-enclosure-client
|
||||||
StandardOutput=file:/var/log/mycroft/enclosure.log
|
StandardOutput=file:/var/log/mycroft/enclosure.log
|
||||||
StandardError=file:/var/log/mycroft/enclosure.error.log
|
StandardError=file:/var/log/mycroft/enclosure.error.log
|
||||||
|
@ -6,8 +6,6 @@ After=mycroft.service
|
|||||||
[Service]
|
[Service]
|
||||||
User=mycroft
|
User=mycroft
|
||||||
WorkingDirectory=/home/mycroft
|
WorkingDirectory=/home/mycroft
|
||||||
ExecStartPre=/bin/psplash-write "MSG Starting Mycroft A.I. messagebus service"
|
|
||||||
ExecStartPre=/bin/sleep 2
|
|
||||||
ExecStart=mycroft-messagebus
|
ExecStart=mycroft-messagebus
|
||||||
StandardOutput=file:/var/log/mycroft/bus.log
|
StandardOutput=file:/var/log/mycroft/bus.log
|
||||||
StandardError=file:/var/log/mycroft/bus.error.log
|
StandardError=file:/var/log/mycroft/bus.error.log
|
||||||
|
@ -6,8 +6,6 @@ After=mycroft.service
|
|||||||
[Service]
|
[Service]
|
||||||
User=mycroft
|
User=mycroft
|
||||||
WorkingDirectory=/home/mycroft
|
WorkingDirectory=/home/mycroft
|
||||||
ExecStartPre=/bin/psplash-write "MSG Starting Mycroft A.I. skills service"
|
|
||||||
ExecStartPre=/bin/sleep 2
|
|
||||||
ExecStart=mycroft-skills
|
ExecStart=mycroft-skills
|
||||||
StandardOutput=file:/var/log/mycroft/skills.log
|
StandardOutput=file:/var/log/mycroft/skills.log
|
||||||
StandardError=file:/var/log/mycroft/skills.error.log
|
StandardError=file:/var/log/mycroft/skills.error.log
|
||||||
|
@ -6,8 +6,6 @@ After=mycroft.service
|
|||||||
[Service]
|
[Service]
|
||||||
User=mycroft
|
User=mycroft
|
||||||
WorkingDirectory=/home/mycroft
|
WorkingDirectory=/home/mycroft
|
||||||
ExecStartPre=/bin/psplash-write "MSG Starting Mycroft A.I. voice service"
|
|
||||||
ExecStartPre=/bin/sleep 2
|
|
||||||
ExecStart=mycroft-speech-client
|
ExecStart=mycroft-speech-client
|
||||||
StandardOutput=file:/var/log/mycroft/voice.log
|
StandardOutput=file:/var/log/mycroft/voice.log
|
||||||
StandardError=file:/var/log/mycroft/voice.error.log
|
StandardError=file:/var/log/mycroft/voice.error.log
|
||||||
|
@ -6,8 +6,6 @@ After=pulseaudio.service
|
|||||||
User=mycroft
|
User=mycroft
|
||||||
WorkingDirectory=/home/mycroft
|
WorkingDirectory=/home/mycroft
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStartPre=/bin/psplash-write "MSG Starting Mycroft A.I. software stack"
|
|
||||||
ExecStartPre=/bin/sleep 2
|
|
||||||
ExecStart=/bin/true
|
ExecStart=/bin/true
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@ Before=sysinit.target shutdown.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStartPre=/bin/psplash-write "MSG Preparing system"
|
|
||||||
ExecStart=/usr/sbin/prepare_system
|
ExecStart=/usr/sbin/prepare_system
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -5,9 +5,7 @@ After=alsa-restore.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStartPre=/bin/psplash-write "MSG Preparing respeaker configuration"
|
|
||||||
ExecStart=/usr/bin/seeed-voicecard
|
ExecStart=/usr/bin/seeed-voicecard
|
||||||
User=root
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=sysinit.target
|
WantedBy=sysinit.target
|
||||||
|
@ -6,7 +6,6 @@ After=network.target time-sync.target sound.target avahi-daemon.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/snapcast/snapclient
|
EnvironmentFile=-/etc/snapcast/snapclient
|
||||||
ExecStartPre=/bin/psplash-write "MSG Starting Snapcast client"
|
|
||||||
ExecStart=/usr/bin/snapclient $SNAPCLIENT_OPTS
|
ExecStart=/usr/bin/snapclient $SNAPCLIENT_OPTS
|
||||||
# very noisy on stdout
|
# very noisy on stdout
|
||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
|
@ -6,7 +6,6 @@ After=network.target time-sync.target avahi-daemon.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/snapcast/snapserver
|
EnvironmentFile=-/etc/snapcast/snapserver
|
||||||
ExecStartPre=/bin/psplash-write "MSG Starting Snapcast server"
|
|
||||||
ExecStart=/usr/bin/snapserver $SNAPSERVER_OPTS
|
ExecStart=/usr/bin/snapserver $SNAPSERVER_OPTS
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ After=pulseaudio.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStartPre=/bin/psplash-write "MSG Starting Spotify connect"
|
|
||||||
ExecStart=/usr/bin/spotifyd --no-daemon
|
ExecStart=/usr/bin/spotifyd --no-daemon
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=-/bin/psplash-write "MSG Preparing for first boot"
|
@ -0,0 +1,2 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=-/bin/psplash-write "MSG Setting up hostname"
|
@ -0,0 +1,3 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=-/bin/psplash-write "MSG Starting Mycroft A.I. audio service"
|
||||||
|
ExecStartPre=-/bin/sleep 2
|
@ -0,0 +1,3 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=-/bin/psplash-write "MSG Starting Mycroft A.I. enclosure service"
|
||||||
|
ExecStartPre=-/bin/sleep 2
|
@ -0,0 +1,3 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=-/bin/psplash-write "MSG Starting Mycroft A.I. messagebus service"
|
||||||
|
ExecStartPre=-/bin/sleep 2
|
@ -0,0 +1,3 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=-/bin/psplash-write "MSG Starting Mycroft A.I. skills service"
|
||||||
|
ExecStartPre=-/bin/sleep 2
|
@ -0,0 +1,3 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=-/bin/psplash-write "MSG Starting Mycroft A.I. voice service"
|
||||||
|
ExecStartPre=-/bin/sleep 2
|
@ -0,0 +1,3 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=-/bin/psplash-write "MSG Starting Mycroft A.I. software stack"
|
||||||
|
ExecStartPre=-/bin/sleep 2
|
@ -0,0 +1,2 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=-/bin/psplash-write "MSG Preparing system"
|
@ -0,0 +1,2 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=-/bin/psplash-write "MSG Preparing respeaker configuration"
|
@ -0,0 +1,2 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=-/bin/psplash-write "MSG Starting Snapcast client"
|
@ -0,0 +1,2 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=-/bin/psplash-write "MSG Starting Snapcast server"
|
@ -0,0 +1,2 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStartPre=-/bin/psplash-write "MSG Starting Spotify connect"
|
Reference in New Issue
Block a user