688943906a
SIGINT is the clean way of stopping the service, while SIGTERM is be the faster and rude way. So first we want to use SIGINT and only when we timeout do we want SIGTERM to be used. Here we ask systemd to stop WSD by sending SIGINT and wait for 120 seconds. After that timeout, it will assume the service is hung and needs to be aborted. We expect that by then we would have saved all documents and cleanly exited. 120 seconds should be sufficient time to save, close, and upload the open documents. Change-Id: I08321814db942d89a44cfce42885840f4afa279c Reviewed-on: https://gerrit.libreoffice.org/81976 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
15 lines
418 B
Desktop File
15 lines
418 B
Desktop File
[Unit]
|
|
Description=LibreOffice Online WebSocket Daemon
|
|
After=network.target
|
|
|
|
[Service]
|
|
EnvironmentFile=-/etc/sysconfig/loolwsd
|
|
ExecStart=/usr/bin/loolwsd --version --o:sys_template_path=/opt/lool/systemplate --o:child_root_path=/opt/lool/child-roots --o:file_server_root_path=/usr/share/loolwsd
|
|
KillSignal=SIGINT
|
|
TimeoutStopSec=120
|
|
User=lool
|
|
KillMode=control-group
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|