From 2defa58b0780d112bd4b81c86ea6ef23407ac8a2 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 10 Apr 2019 12:10:06 +0200 Subject: Libreoffice install script, service and settings --- install/libreoffice.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 install/libreoffice.service (limited to 'install/libreoffice.service') 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 -- cgit v1.2.3