From c68ed019002cf6a20453f479d96f67c894548927 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 29 Dec 2020 20:34:38 +0100 Subject: reload via systemd service --- networkmanager/80-pacredir | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'networkmanager/80-pacredir') diff --git a/networkmanager/80-pacredir b/networkmanager/80-pacredir index bd2def5..32114ae 100755 --- a/networkmanager/80-pacredir +++ b/networkmanager/80-pacredir @@ -1,7 +1,7 @@ #!/bin/sh if [ "${2}" == "up" ]; then - if pgrep -x pacredir >/dev/null; then - kill -HUP $(pgrep -x pacredir) + if systemctl is-active -q pacredir.service; then + systemctl reload pacredir.service fi fi -- cgit v1.2.3-70-g09d2