mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-02-14 19:00:42 +01:00
Changes to the systemd service system to support PHAL
This commit is contained in:
parent
42d5ac4b31
commit
6cdf1ea727
@ -1,5 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Mycroft Enclosure
|
Description=Mycroft PHAL
|
||||||
PartOf=mycroft.service
|
PartOf=mycroft.service
|
||||||
After=mycroft.service
|
After=mycroft.service
|
||||||
After=mycroft-messagebus.service
|
After=mycroft-messagebus.service
|
||||||
@ -9,9 +9,9 @@ User=mycroft
|
|||||||
Type=notify
|
Type=notify
|
||||||
WorkingDirectory=/home/mycroft
|
WorkingDirectory=/home/mycroft
|
||||||
Environment=PYTHONUNBUFFERED=1
|
Environment=PYTHONUNBUFFERED=1
|
||||||
ExecStart=/home/mycroft/.local/share/systemd/mycroft-systemd_enclosure.py
|
ExecStart=/home/mycroft/.local/share/systemd/mycroft-systemd_phal.py
|
||||||
StandardOutput=append:/var/log/mycroft/enclosure_client.log
|
StandardOutput=append:/var/log/mycroft/phal.log
|
||||||
StandardError=file:/var/log/mycroft/enclosure_client.error.log
|
StandardError=file:/var/log/mycroft/phal.error.log
|
||||||
TimeoutStartSec=1m
|
TimeoutStartSec=1m
|
||||||
TimeoutStopSec=1m
|
TimeoutStopSec=1m
|
||||||
Restart=on-failure
|
Restart=on-failure
|
@ -14,8 +14,8 @@ define MYCROFT_SERVICE_INSTALL_TARGET_CMDS
|
|||||||
mkdir -p $(TARGET_DIR)/home/mycroft/.local/share/systemd
|
mkdir -p $(TARGET_DIR)/home/mycroft/.local/share/systemd
|
||||||
$(INSTALL) -m 0755 $(@D)/mycroft-systemd_audio.py \
|
$(INSTALL) -m 0755 $(@D)/mycroft-systemd_audio.py \
|
||||||
$(TARGET_DIR)/home/mycroft/.local/share/systemd/mycroft-systemd_audio.py
|
$(TARGET_DIR)/home/mycroft/.local/share/systemd/mycroft-systemd_audio.py
|
||||||
$(INSTALL) -m 0755 $(@D)/mycroft-systemd_enclosure.py \
|
$(INSTALL) -m 0755 $(@D)/mycroft-systemd_phal.py \
|
||||||
$(TARGET_DIR)/home/mycroft/.local/share/systemd/mycroft-systemd_enclosure.py
|
$(TARGET_DIR)/home/mycroft/.local/share/systemd/mycroft-systemd_phal.py
|
||||||
$(INSTALL) -m 0755 $(@D)/mycroft-systemd_messagebus.py \
|
$(INSTALL) -m 0755 $(@D)/mycroft-systemd_messagebus.py \
|
||||||
$(TARGET_DIR)/home/mycroft/.local/share/systemd/mycroft-systemd_messagebus.py
|
$(TARGET_DIR)/home/mycroft/.local/share/systemd/mycroft-systemd_messagebus.py
|
||||||
$(INSTALL) -m 0755 $(@D)/mycroft-systemd_skills.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
|
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-audio.service
|
||||||
$(INSTALL) -D -m 644 $(@D)/mycroft-voice.service \
|
$(INSTALL) -D -m 644 $(@D)/mycroft-voice.service \
|
||||||
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-voice.service
|
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-voice.service
|
||||||
$(INSTALL) -D -m 644 $(@D)/mycroft-enclosure-client.service \
|
$(INSTALL) -D -m 644 $(@D)/mycroft-phal.service \
|
||||||
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-enclosure-client.service
|
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-phal.service
|
||||||
$(INSTALL) -D -m 644 $(@D)/mycroft-skills.service \
|
$(INSTALL) -D -m 644 $(@D)/mycroft-skills.service \
|
||||||
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-skills.service
|
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-skills.service
|
||||||
$(INSTALL) -D -m 644 $(@D)/mycroft-gui.service \
|
$(INSTALL) -D -m 644 $(@D)/mycroft-gui.service \
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
##########################################################################
|
##########################################################################
|
||||||
import sdnotify
|
import sdnotify
|
||||||
from mycroft.client.enclosure.__main__ import main
|
from ovos_PHAL.__main__ import main
|
||||||
|
|
||||||
n = sdnotify.SystemdNotifier()
|
n = sdnotify.SystemdNotifier()
|
||||||
|
|
@ -17,7 +17,7 @@ enable mycroft-audio.service
|
|||||||
enable mycroft-skills.service
|
enable mycroft-skills.service
|
||||||
enable mycroft-gui.service
|
enable mycroft-gui.service
|
||||||
enable mycroft-enclosure-gui.service
|
enable mycroft-enclosure-gui.service
|
||||||
enable mycroft-enclosure-client.service
|
enable mycroft-phal.service
|
||||||
enable ovos-splash-quit.service
|
enable ovos-splash-quit.service
|
||||||
enable local-backend.service
|
enable local-backend.service
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user