mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-14 01:04:14 +00:00
c1d06d9501
* 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>
9 lines
165 B
Bash
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
|