syncthing/script/post-upgrade
bt90 c1d06d9501
build: Package sysctl configuration to raise UDP buffer size on Linux (#7417)
* Provide a sysctl config to raise max UDP buffer size

* Add sysctl config to deb

* Check if `deb-systemd-invoke` is available

Co-authored-by: otbutz <tbutz@optitool.de>
2021-03-05 08:08:29 +01:00

9 lines
165 B
Bash

#!/bin/sh
if command -v deb-systemd-invoke > /dev/null; then
deb-systemd-invoke restart procps.service
else
sysctl -q --system
fi
pkill -HUP -x syncthing || true