summaryrefslogtreecommitdiff
path: root/install/libreoffice.service
diff options
context:
space:
mode:
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