From 5ae08fd5850b39a85acd4783b0bd5e0fe2d05406 Mon Sep 17 00:00:00 2001
From: j1nx
Date: Tue, 15 Mar 2022 21:03:53 +0100
Subject: [PATCH] Initial migration to use the new enclosure client PHAL
service
---
...oft-enclosure.service => mycroft-enclosure-client.service} | 4 ++--
.../package/mycroft-service/mycroft-systemd_enclosure.py | 4 ++--
.../package/mycroft-service/mycroft-systemd_gui.py | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
rename buildroot-external/package/mycroft-service/{mycroft-enclosure.service => mycroft-enclosure-client.service} (79%)
diff --git a/buildroot-external/package/mycroft-service/mycroft-enclosure.service b/buildroot-external/package/mycroft-service/mycroft-enclosure-client.service
similarity index 79%
rename from buildroot-external/package/mycroft-service/mycroft-enclosure.service
rename to buildroot-external/package/mycroft-service/mycroft-enclosure-client.service
index 05f553bc..5fe413bc 100644
--- a/buildroot-external/package/mycroft-service/mycroft-enclosure.service
+++ b/buildroot-external/package/mycroft-service/mycroft-enclosure-client.service
@@ -10,8 +10,8 @@ Type=notify
WorkingDirectory=/home/mycroft
Environment=PYTHONUNBUFFERED=1
ExecStart=/home/mycroft/.local/share/systemd/mycroft-systemd_enclosure.py
-StandardOutput=append:/var/log/mycroft/enclosure.log
-StandardError=file:/var/log/mycroft/enclosure.error.log
+StandardOutput=append:/var/log/mycroft/enclosure_client.log
+StandardError=file:/var/log/mycroft/enclosure_client.error.log
TimeoutStartSec=1m
TimeoutStopSec=1m
Restart=on-failure
diff --git a/buildroot-external/package/mycroft-service/mycroft-systemd_enclosure.py b/buildroot-external/package/mycroft-service/mycroft-systemd_enclosure.py
index 7c226bba..f57d71fc 100755
--- a/buildroot-external/package/mycroft-service/mycroft-systemd_enclosure.py
+++ b/buildroot-external/package/mycroft-service/mycroft-systemd_enclosure.py
@@ -21,10 +21,10 @@ n = sdnotify.SystemdNotifier()
def notify_ready():
n.notify('READY=1')
- print('Startup of Mycroft Enclosure service complete')
+ print('Startup of Mycroft Enclosure Client service complete')
def notify_stopping():
n.notify('STOPPING=1')
- print('Stopping the Mycroft Enclosure service')
+ print('Stopping the Mycroft Enclosure Client service')
main(ready_hook=notify_ready, stopping_hook=notify_stopping)
diff --git a/buildroot-external/package/mycroft-service/mycroft-systemd_gui.py b/buildroot-external/package/mycroft-service/mycroft-systemd_gui.py
index c4ade3e6..f2268292 100755
--- a/buildroot-external/package/mycroft-service/mycroft-systemd_gui.py
+++ b/buildroot-external/package/mycroft-service/mycroft-systemd_gui.py
@@ -21,10 +21,10 @@ n = sdnotify.SystemdNotifier()
def notify_ready():
n.notify('READY=1')
- print('Startup of Mycroft Enclosure service complete')
+ print('Startup of Mycroft Enclosure GUI service complete')
def notify_stopping():
n.notify('STOPPING=1')
- print('Stopping the Mycroft Enclosure service')
+ print('Stopping the Mycroft Enclosure GUI service')
main(ready_hook=notify_ready, stopping_hook=notify_stopping)