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

Switch over to user systemd services

This commit is contained in:
j1nx
2022-10-08 17:52:34 +02:00
parent a8f16fba66
commit f406eb2827
34 changed files with 356 additions and 110 deletions

View File

@@ -9,14 +9,6 @@ enable NetworkManager.service
enable getty@tty1.service
enable ovos-splash-start.service
enable ovos-splash-systemd.service
enable mycroft.service
enable mycroft-messagebus.service
enable mycroft-voice.service
enable mycroft-audio.service
enable mycroft-skills.service
enable mycroft-gui.service
enable mycroft-enclosure-gui.service
enable mycroft-phal.service
enable ovos-splash-quit.service
enable local-backend.service

View File

@@ -0,0 +1,15 @@
disable pulseaudio.service
disable pulseaudio.socket
enable mycroft.service
enable mycroft-messagebus.service
enable mycroft-voice.service
enable mycroft-audio.service
enable mycroft-skills.service
enable mycroft-gui.service
enable mycroft-enclosure-gui.service
enable mycroft-phal.service
enable local-backend.service
enable kdeconnectd.service

View File

@@ -4,3 +4,6 @@ Description=Connect your OVOS-Device to your smartphone or tablet
[Service]
ExecStart=/usr/lib/libexec/kdeconnectd -platform offscreen
BusName=org.kde.kdeconnect
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,22 @@
[Unit]
Description=Mycroft Audio
PartOf=mycroft.service
After=mycroft.service
After=mycroft-messagebus.service
[Service]
Type=notify
ExecStart=/usr/libexec/mycroft-systemd-audio
StandardOutput=append:/home/mycroft/.local/state/mycroft/audio.log
StandardError=file:/home/mycroft/.local/state/mycroft/audio.error.log
TimeoutStartSec=1m
TimeoutStopSec=1m
Restart=on-failure
StartLimitInterval=5min
StartLimitBurst=4
#StartLimitAction=reboot-force
#WatchdogSec=30s
[Install]
WantedBy=mycroft.service

View File

@@ -0,0 +1,21 @@
[Unit]
Description=Mycroft Enclosure
PartOf=mycroft.service
After=mycroft.service
After=mycroft-messagebus.service
[Service]
Type=notify
ExecStart=/usr/libexec/mycroft-systemd-gui
StandardOutput=append:/home/mycroft/.local/state/mycroft/enclosure_gui.log
StandardError=file:/home/mycroft/.local/state/mycroft/enclosure_gui.error.log
TimeoutStartSec=1m
TimeoutStopSec=1m
Restart=on-failure
StartLimitInterval=5min
StartLimitBurst=4
#StartLimitAction=reboot-force
#WatchdogSec=30s
[Install]
WantedBy=mycroft.service

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Mycroft GUI
[Service]
ExecStartPre=-/usr/bin/kbuildsycoca5
ExecStart=ovos-shell --maximize
StandardOutput=null
Restart=on-failure
[Install]
WantedBy=mycroft.service

View File

@@ -0,0 +1,20 @@
[Unit]
Description=Mycroft Messagebus
PartOf=mycroft.service
After=mycroft.service
[Service]
Type=notify
ExecStart=/usr/libexec/mycroft-systemd-messagebus
StandardOutput=append:/home/mycroft/.local/state/mycroft/bus.log
StandardError=file:/home/mycroft/.local/state/mycroft/bus.error.log
TimeoutStartSec=1m
TimeoutStopSec=1m
Restart=on-failure
StartLimitInterval=5min
StartLimitBurst=4
#StartLimitAction=reboot-force
#WatchdogSec=30s
[Install]
WantedBy=mycroft.service

View File

@@ -0,0 +1,21 @@
[Unit]
Description=Mycroft PHAL
PartOf=mycroft.service
After=mycroft.service
After=mycroft-messagebus.service
[Service]
Type=notify
ExecStart=/usr/libexec/mycroft-systemd-phal
StandardOutput=append:/home/mycroft/.local/state/mycroft/phal.log
StandardError=file:/home/mycroft/.local/state/mycroft/phal.error.log
TimeoutStartSec=1m
TimeoutStopSec=1m
Restart=on-failure
StartLimitInterval=5min
StartLimitBurst=4
#StartLimitAction=reboot-force
#WatchdogSec=30s
[Install]
WantedBy=mycroft.service

View File

@@ -0,0 +1,21 @@
[Unit]
Description=Mycroft Skills
PartOf=mycroft.service
After=mycroft.service
After=mycroft-messagebus.service
[Service]
Type=notify
ExecStart=/usr/libexec/mycroft-systemd-skills
StandardOutput=append:/home/mycroft/.local/state/mycroft/skills.log
StandardError=file:/home/mycroft/.local/state/mycroft/skills.error.log
TimeoutStartSec=10m
TimeoutStopSec=1m
Restart=on-failure
StartLimitInterval=5min
StartLimitBurst=4
#StartLimitAction=reboot-force
#WatchdogSec=30s
[Install]
WantedBy=mycroft.service

View File

@@ -0,0 +1,23 @@
[Unit]
Description=Mycroft Voice
PartOf=mycroft.service
After=mycroft.service
After=mycroft-messagebus.service
[Service]
Type=notify
ExecStart=/usr/libexec/mycroft-systemd-voice
StandardOutput=append:/home/mycroft/.local/state/mycroft/voice.log
StandardError=file:/home/mycroft/.local/state/mycroft/voice.error.log
TimeoutStartSec=1m
TimeoutStopSec=1m
Restart=on-failure
Restart=on-failure
StartLimitInterval=5min
StartLimitBurst=4
#StartLimitAction=reboot-force
#WatchdogSec=30s
[Install]
WantedBy=mycroft.service

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Mycroft A.I. Software stack.
[Service]
Type=oneshot
ExecStart=/bin/true
RemainAfterExit=yes
[Install]
WantedBy=default.target