summaryrefslogtreecommitdiff
path: root/docker/scripts
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-06-25 09:11:06 +0200
committerAndras Timar <andras.timar@collabora.com>2019-06-25 11:35:50 +0200
commit3b9255bb41d6a14f917bfed03ba8394d53034537 (patch)
tree7c3fbdb8c337100dbb03bd419aef5d81150bf05b /docker/scripts
parent82aeee991b9d4db57f0f58f801e9151a7663c83b (diff)
Use pkill to kill process instead of killall
Using killall does not work, it gives 'no process found'. Change-Id: I0e528ab8c0f6f0c4cb06ea5e6c436aecf2274688 Reviewed-on: https://gerrit.libreoffice.org/74679 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'docker/scripts')
-rwxr-xr-xdocker/scripts/run-lool.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/scripts/run-lool.sh b/docker/scripts/run-lool.sh
index bc0ef7d64..b76b43ee6 100755
--- a/docker/scripts/run-lool.sh
+++ b/docker/scripts/run-lool.sh
@@ -36,10 +36,10 @@ perl -pi -e "s/<password (.*)>.*<\/password>/<password \1>${password}<\/password
# Restart when /etc/loolwsd/loolwsd.xml changes
-[ -x /usr/bin/inotifywait -a /usr/bin/killall ] && (
+[ -x /usr/bin/inotifywait -a /usr/bin/pkill ] && (
/usr/bin/inotifywait -e modify /etc/loolwsd/loolwsd.xml
echo "$(ls -l /etc/loolwsd/loolwsd.xml) modified --> restarting"
- /usr/bin/killall -1 loolwsd
+ pkill -f --signal 1 loolwsd
) &
# Start loolwsd