MycroftOS: GUI: Add mycroft-gui systemd service file

This commit is contained in:
j1nx 2020-05-17 17:38:09 +02:00
parent e73b5bbd00
commit b3d1c011ef
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,18 @@
[Unit]
Description=Mycroft GUI
PartOf=mycroft.service
After=mycroft.service
After=mycroft-messagebus.service
[Service]
User=mycroft
WorkingDirectory=/home/mycroft
Environment=LD_LIBRARY_PATH=/usr/lib
Environment=QML2_IMPORT_PATH=/usr/lib/qml
ExecStartPre=-/usr/bin/sudo /bin/psplash-write QUIT
ExecStart=mycroft-gui-app
StandardOutput=null
Restart=on-failure
[Install]
WantedBy=mycroft.service

View File

@ -23,6 +23,8 @@ define MYCROFT_SERVICE_INSTALL_TARGET_CMDS
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-enclosure.service
$(INSTALL) -D -m 644 $(@D)/mycroft-skills.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-skills.service
$(INSTALL) -D -m 644 $(@D)/mycroft-gui.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-gui.service
endef
$(eval $(generic-package))

View File

@ -19,6 +19,7 @@ enable mycroft-voice.service
enable mycroft-audio.service
enable mycroft-skills.service
enable mycroft-enclosure.service
enable mycroft-gui.service
disable mycroft-splash-quit.service
disable getty@.service