summaryrefslogtreecommitdiff
path: root/install/libreoffice.service
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-04-10 12:10:06 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:28 +0200
commit2defa58b0780d112bd4b81c86ea6ef23407ac8a2 (patch)
treef0606e530561e22308df45d69975218e066954dc /install/libreoffice.service
parent9f132923535b1a915a740c9c30683e339819492f (diff)
downloadIshtar-2defa58b0780d112bd4b81c86ea6ef23407ac8a2.tar.bz2
Ishtar-2defa58b0780d112bd4b81c86ea6ef23407ac8a2.zip
Libreoffice install script, service and settings
Diffstat (limited to 'install/libreoffice.service')
-rw-r--r--install/libreoffice.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/install/libreoffice.service b/install/libreoffice.service
new file mode 100644
index 000000000..64cbbf001
--- /dev/null
+++ b/install/libreoffice.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Control headless libreoffice instance
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/libreoffice --headless \
+ --accept=socket,host=127.0.0.1,port=8101;urp; \
+ --nodefault --nofirststartwizard --nolockcheck \
+ --nologo --norestore --invisible \
+ --pidfile=/var/run/libreoffice.pid
+RestartSec=5
+ExecStop=/usr/bin/pkill -F /var/run/libreoffice.pid
+PIDFile=/var/run/libreoffice.pid
+
+[Install]
+WantedBy=multi-user.target