Initial migration to use the new enclosure client PHAL service
This commit is contained in:
parent
6a4644f73f
commit
5ae08fd585
|
@ -10,8 +10,8 @@ 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_enclosure.py
|
||||||
StandardOutput=append:/var/log/mycroft/enclosure.log
|
StandardOutput=append:/var/log/mycroft/enclosure_client.log
|
||||||
StandardError=file:/var/log/mycroft/enclosure.error.log
|
StandardError=file:/var/log/mycroft/enclosure_client.error.log
|
||||||
TimeoutStartSec=1m
|
TimeoutStartSec=1m
|
||||||
TimeoutStopSec=1m
|
TimeoutStopSec=1m
|
||||||
Restart=on-failure
|
Restart=on-failure
|
|
@ -21,10 +21,10 @@ n = sdnotify.SystemdNotifier()
|
||||||
|
|
||||||
def notify_ready():
|
def notify_ready():
|
||||||
n.notify('READY=1')
|
n.notify('READY=1')
|
||||||
print('Startup of Mycroft Enclosure service complete')
|
print('Startup of Mycroft Enclosure Client service complete')
|
||||||
|
|
||||||
def notify_stopping():
|
def notify_stopping():
|
||||||
n.notify('STOPPING=1')
|
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)
|
main(ready_hook=notify_ready, stopping_hook=notify_stopping)
|
||||||
|
|
|
@ -21,10 +21,10 @@ n = sdnotify.SystemdNotifier()
|
||||||
|
|
||||||
def notify_ready():
|
def notify_ready():
|
||||||
n.notify('READY=1')
|
n.notify('READY=1')
|
||||||
print('Startup of Mycroft Enclosure service complete')
|
print('Startup of Mycroft Enclosure GUI service complete')
|
||||||
|
|
||||||
def notify_stopping():
|
def notify_stopping():
|
||||||
n.notify('STOPPING=1')
|
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)
|
main(ready_hook=notify_ready, stopping_hook=notify_stopping)
|
||||||
|
|
Loading…
Reference in New Issue