summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-05-14 00:47:06 +0200
committerConrad Kostecki <conikost@gentoo.org>2022-05-14 00:51:17 +0200
commitb6a93415bdb253c924b8c9d31c3cf15b8dbeaf9d (patch)
tree35b351114a9046dd0920e61c6f644784678a5336 /app-office/libreoffice/files
parentacct-user/libreoffice: initial import (diff)
downloadgentoo-b6a93415bdb253c924b8c9d31c3cf15b8dbeaf9d.tar.gz
gentoo-b6a93415bdb253c924b8c9d31c3cf15b8dbeaf9d.tar.bz2
gentoo-b6a93415bdb253c924b8c9d31c3cf15b8dbeaf9d.zip
app-office/libreoffice: add user/group for headless server
Closes: https://github.com/gentoo/gentoo/pull/24938 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-office/libreoffice/files')
-rw-r--r--app-office/libreoffice/files/soffice.confd5
-rw-r--r--app-office/libreoffice/files/soffice.initd14
2 files changed, 19 insertions, 0 deletions
diff --git a/app-office/libreoffice/files/soffice.confd b/app-office/libreoffice/files/soffice.confd
new file mode 100644
index 000000000000..df1a26969158
--- /dev/null
+++ b/app-office/libreoffice/files/soffice.confd
@@ -0,0 +1,5 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Default options for the soffice daemon
+libreoffice_opts="--accept=\"socket,host=localhost,port=8100,tcpNoDelay=1;urp;\""
diff --git a/app-office/libreoffice/files/soffice.initd b/app-office/libreoffice/files/soffice.initd
new file mode 100644
index 000000000000..ecd650145735
--- /dev/null
+++ b/app-office/libreoffice/files/soffice.initd
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="LibreOffice headless daemon for generating documents"
+name="LibreOffice headless daemon"
+pidfile="/run/soffice.pid"
+soffice_args="${libreoffice_opts}"
+
+command="/usr/bin/soffice"
+command_args="--nodefault --nofirststartwizard --nolockcheck --nologo --norestore --headless ${soffice_args}"
+command_background="true"
+command_group="libreoffice"
+command_user="libreoffice"