syncthing/script/post-upgrade

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