Add /var/log (default log path) to ReadWritePaths of loolwsd.service (fixes GH #739)

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I47e8a0983fd74656739498bf02bad117e821cfbf
pull/696/head
Andras Timar 2020-11-20 20:19:21 +01:00
parent 82287c2ad2
commit 3f81bfd987
3 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ Restart=always
LimitNOFILE=infinity:infinity
ProtectSystem=strict
ReadWritePaths=/opt/lool
ReadWritePaths=/opt/lool /var/log
ProtectHome=yes
PrivateTmp=yes

View File

@ -13,7 +13,7 @@ Restart=always
LimitNOFILE=infinity:infinity
ProtectSystem=strict
ReadWritePaths=/opt/lool
ReadWritePaths=/opt/lool /var/log
ProtectHome=yes
PrivateTmp=yes

View File

@ -55,6 +55,7 @@
See also: https://docs.libreoffice.org/sal/html/sal_log.html -->
<lokit_sal_log type="string" desc="Fine tune log messages from LOKit. Default is to suppress log messages from LOKit." default="-INFO-WARN">-INFO-WARN</lokit_sal_log>
<file enable="@LOOLWSD_LOG_TO_FILE@">
<!-- If you use other path than /var/log and you run loolwsd from systemd, make sure that you enable that path in loolwsd.service (ReadWritePaths). -->
<property name="path" desc="Log file path.">@LOOLWSD_LOGFILE@</property>
<property name="rotation" desc="Log file rotation strategy. See Poco FileChannel.">never</property>
<property name="archive" desc="Append either timestamp or number to the archived log filename.">timestamp</property>