summarylogtreecommitdiffstats
path: root/mycroft-service.service
diff options
context:
space:
mode:
authorRafael Reggiani Manzo2016-12-27 10:38:25 -0200
committerRafael Reggiani Manzo2016-12-27 10:38:25 -0200
commit69be2dcc091d62243567be82f87757a9ca8736e9 (patch)
tree51a8c5e047a6b364e269c356077135635ca6fab7 /mycroft-service.service
parent056e8f15349789cf6665727a5d25996f9d787b1f (diff)
downloadaur-69be2dcc091d62243567be82f87757a9ca8736e9.tar.gz
Create user systemd units
Those are a better solution for the audio issues, since PulseAudio itself does not recoomend to get it running as a system instance and Gnome also is not able to manage the audio preferences with such configuration. The units provide a standard interface to starting mycroft services allowing even multiple user installations each one paired independently.
Diffstat (limited to 'mycroft-service.service')
-rw-r--r--mycroft-service.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/mycroft-service.service b/mycroft-service.service
new file mode 100644
index 000000000000..7fe1c3943cd9
--- /dev/null
+++ b/mycroft-service.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Mycroft main service
+After=network.target local-fs.target remote-fs.target
+
+[Service]
+Type=simple
+PermissionsStartOnly=true
+ExecStart=/bin/bash -c "source /usr/share/mycroft-core/.virtualenvs/mycroft/bin/activate && /usr/share/mycroft-core/start.sh service"
+
+[Install]
+WantedBy=multi-user.target