MycroftOS: GUI: Add mycroft-gui systemd service file
This commit is contained in:
parent
e73b5bbd00
commit
b3d1c011ef
|
@ -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
|
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue