From 5600bb341572edbe5fbfc1dee60de6bf21bd5ee5 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Fri, 7 Jul 2017 16:13:26 -0400 Subject: [PATCH] Add a bit more and fix the envrionment file configuration --- content/post/building-libreoffice-online-for-debian.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/content/post/building-libreoffice-online-for-debian.md b/content/post/building-libreoffice-online-for-debian.md index b867f4f..ab726d7 100644 --- a/content/post/building-libreoffice-online-for-debian.md +++ b/content/post/building-libreoffice-online-for-debian.md @@ -333,18 +333,21 @@ Last-Update: 2017-06-23 ``` -One final tweak to perform is to edit the systemd unit file to point to the `libreoffice` templates directory rather than the Collabora one. +One final tweak to perform is to edit the systemd unit file to point to the `libreoffice` templates directory rather than the Collabora one, and change the Red Hat-specific `EnvironmentFile` directive to the Debian one. ``` $ vim debian/loolwsd.service -@@ -4,7 +4,7 @@ After=network.target +@@ -3,8 +3,8 @@ Description=LibreOffice Online WebSocket Daemon + After=network.target [Service] - EnvironmentFile=-/etc/sysconfig/loolwsd +-EnvironmentFile=-/etc/sysconfig/loolwsd -ExecStart=/usr/bin/loolwsd --version --o:sys_template_path=/opt/lool/systemplate --o:lo_template_path=/opt/collaboraoffice5.3 --o:child_root_path=/opt/lool/child-roots --o:file_server_root_path=/usr/share/loolwsd ++EnvironmentFile=-/etc/default/loolwsd +ExecStart=/usr/bin/loolwsd --version --o:sys_template_path=/opt/lool/systemplate --o:lo_template_path=/usr/lib/libreoffice --o:child_root_path=/opt/lool/child-roots --o:file_server_root_path=/usr/share/loolwsd User=lool KillMode=control-group + Restart=always ``` Now we install some required `npm` dependencies; the `nodejs-legacy` package will provide our `npm`; don't install the `npm` package itself as this will cause dependency hell. I do this in the main homedir to avoid putting cruft into the source directories.