Service changes

This commit is contained in:
j1nx 2022-10-08 20:37:08 +02:00
parent ec6d885f97
commit fe4275f4d4
11 changed files with 29 additions and 22 deletions

View File

@ -5,4 +5,4 @@ alias ll='ls -la'
######################################################################
# Initialize OpenVoiceOS CLI Environment
######################################################################
source cli_login.sh
#source cli_login.sh

View File

@ -0,0 +1 @@
../../../../../../usr/lib/systemd/user/local-backend.service

View File

@ -9,9 +9,8 @@ enable NetworkManager.service
enable getty@tty1.service
enable ovos-splash-start.service
enable ovos-splash-systemd.service
enable ovos-splash-quit.service
enable local-backend.service
disable ovos-splash-quit.service
disable mosquitto.service
disable motion.service
disable mpd.service

View File

@ -1,13 +0,0 @@
[Unit]
Description=OVOS Local Backend
[Service]
User=mycroft
WorkingDirectory=/home/mycroft
ExecStart=ovos-local-backend
StandardOutput=file:/var/log/mycroft/local-backend.log
StandardError=file:/var/log/mycroft/local-backend.error.log
Restart=on-failure
[Install]
WantedBy=multi-user.target

View File

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

View File

@ -8,7 +8,7 @@ After=mycroft-messagebus.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
#StandardError=file:/home/mycroft/.local/state/mycroft/audio.error.log
TimeoutStartSec=1m
TimeoutStopSec=1m
Restart=on-failure

View File

@ -8,7 +8,7 @@ After=mycroft-messagebus.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
#StandardError=file:/home/mycroft/.local/state/mycroft/enclosure_gui.error.log
TimeoutStartSec=1m
TimeoutStopSec=1m
Restart=on-failure

View File

@ -7,7 +7,7 @@ After=mycroft.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
#StandardError=file:/home/mycroft/.local/state/mycroft/bus.error.log
TimeoutStartSec=1m
TimeoutStopSec=1m
Restart=on-failure

View File

@ -8,7 +8,7 @@ After=mycroft-messagebus.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
#StandardError=file:/home/mycroft/.local/state/mycroft/phal.error.log
TimeoutStartSec=1m
TimeoutStopSec=1m
Restart=on-failure

View File

@ -8,7 +8,7 @@ After=mycroft-messagebus.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
#StandardError=file:/home/mycroft/.local/state/mycroft/skills.error.log
TimeoutStartSec=10m
TimeoutStopSec=1m
Restart=on-failure

View File

@ -8,7 +8,7 @@ After=mycroft-messagebus.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
#StandardError=file:/home/mycroft/.local/state/mycroft/voice.error.log
TimeoutStartSec=1m
TimeoutStopSec=1m
Restart=on-failure