2019-12-21 18:54:56 +01:00
|
|
|
[Unit]
|
2022-03-16 16:08:00 +01:00
|
|
|
Description=Mycroft PHAL
|
2019-12-21 18:54:56 +01:00
|
|
|
PartOf=mycroft.service
|
|
|
|
After=mycroft.service
|
|
|
|
After=mycroft-messagebus.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=mycroft
|
2022-03-16 15:47:39 +01:00
|
|
|
Type=notify
|
2019-12-21 18:54:56 +01:00
|
|
|
WorkingDirectory=/home/mycroft
|
2021-04-05 20:15:47 +02:00
|
|
|
Environment=PYTHONUNBUFFERED=1
|
2022-03-16 16:08:00 +01:00
|
|
|
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
|
2022-03-16 15:47:39 +01:00
|
|
|
TimeoutStartSec=1m
|
|
|
|
TimeoutStopSec=1m
|
2019-12-21 18:54:56 +01:00
|
|
|
Restart=on-failure
|
2022-03-16 15:47:39 +01:00
|
|
|
StartLimitInterval=5min
|
|
|
|
StartLimitBurst=4
|
2021-04-05 20:15:47 +02:00
|
|
|
#StartLimitAction=reboot-force
|
|
|
|
#WatchdogSec=30s
|
2019-12-21 18:54:56 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=mycroft.service
|