Initial migration to use the new enclosure client PHAL service

This commit is contained in:
j1nx 2022-03-15 21:03:53 +01:00
parent 6a4644f73f
commit 5ae08fd585
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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)

View File

@ -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)