Changes to the systemd service system to support PHAL

This commit is contained in:
j1nx 2022-03-16 16:08:00 +01:00
parent 42d5ac4b31
commit 6cdf1ea727
5 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
[Unit]
Description=Mycroft Enclosure
Description=Mycroft PHAL
PartOf=mycroft.service
After=mycroft.service
After=mycroft-messagebus.service
@ -9,9 +9,9 @@ User=mycroft
Type=notify
WorkingDirectory=/home/mycroft
Environment=PYTHONUNBUFFERED=1
ExecStart=/home/mycroft/.local/share/systemd/mycroft-systemd_enclosure.py
StandardOutput=append:/var/log/mycroft/enclosure_client.log
StandardError=file:/var/log/mycroft/enclosure_client.error.log
ExecStart=/home/mycroft/.local/share/systemd/mycroft-systemd_phal.py
StandardOutput=append:/var/log/mycroft/phal.log
StandardError=file:/var/log/mycroft/phal.error.log
TimeoutStartSec=1m
TimeoutStopSec=1m
Restart=on-failure

View File

@ -14,8 +14,8 @@ define MYCROFT_SERVICE_INSTALL_TARGET_CMDS
mkdir -p $(TARGET_DIR)/home/mycroft/.local/share/systemd
$(INSTALL) -m 0755 $(@D)/mycroft-systemd_audio.py \
$(TARGET_DIR)/home/mycroft/.local/share/systemd/mycroft-systemd_audio.py
$(INSTALL) -m 0755 $(@D)/mycroft-systemd_enclosure.py \
$(TARGET_DIR)/home/mycroft/.local/share/systemd/mycroft-systemd_enclosure.py
$(INSTALL) -m 0755 $(@D)/mycroft-systemd_phal.py \
$(TARGET_DIR)/home/mycroft/.local/share/systemd/mycroft-systemd_phal.py
$(INSTALL) -m 0755 $(@D)/mycroft-systemd_messagebus.py \
$(TARGET_DIR)/home/mycroft/.local/share/systemd/mycroft-systemd_messagebus.py
$(INSTALL) -m 0755 $(@D)/mycroft-systemd_skills.py \
@ -33,8 +33,8 @@ define MYCROFT_SERVICE_INSTALL_TARGET_CMDS
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-audio.service
$(INSTALL) -D -m 644 $(@D)/mycroft-voice.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-voice.service
$(INSTALL) -D -m 644 $(@D)/mycroft-enclosure-client.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-enclosure-client.service
$(INSTALL) -D -m 644 $(@D)/mycroft-phal.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-phal.service
$(INSTALL) -D -m 644 $(@D)/mycroft-skills.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-skills.service
$(INSTALL) -D -m 644 $(@D)/mycroft-gui.service \

View File

@ -15,7 +15,7 @@
# limitations under the License.
##########################################################################
import sdnotify
from mycroft.client.enclosure.__main__ import main
from ovos_PHAL.__main__ import main
n = sdnotify.SystemdNotifier()

View File

@ -17,7 +17,7 @@ enable mycroft-audio.service
enable mycroft-skills.service
enable mycroft-gui.service
enable mycroft-enclosure-gui.service
enable mycroft-enclosure-client.service
enable mycroft-phal.service
enable ovos-splash-quit.service
enable local-backend.service