1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2024-12-28 01:30:59 +01:00
OpenVoiceOS/buildroot-external/package/mycroft-service/mycroft-enclosure-gui.service
j1nx 3734680436 Only start GUI services if a screen is attached.
Support only for rpi's at this moment. Will figure out x86_64 when we get there.
2022-01-29 16:00:51 +01:00

26 lines
616 B
Desktop File

[Unit]
Description=Mycroft Enclosure
PartOf=mycroft.service
After=mycroft.service
After=mycroft-messagebus.service
[Service]
User=mycroft
Type=notify
WorkingDirectory=/home/mycroft
Environment=PYTHONUNBUFFERED=1
ExecCondition=/usr/sbin/screencheck
ExecStart=/home/mycroft/.local/share/systemd/mycroft-systemd_gui.py
StandardOutput=append:/var/log/mycroft/enclosure_gui.log
StandardError=file:/var/log/mycroft/enclosure_gui.error.log
TimeoutStartSec=1m
TimeoutStopSec=1m
Restart=on-failure
StartLimitInterval=5min
StartLimitBurst=4
#StartLimitAction=reboot-force
#WatchdogSec=30s
[Install]
WantedBy=mycroft.service