diff options
-rw-r--r-- | dhcpcd/80-pacredir | 4 | ||||
-rwxr-xr-x | networkmanager/80-pacredir | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/dhcpcd/80-pacredir b/dhcpcd/80-pacredir index 3e7addb..6e8561b 100644 --- a/dhcpcd/80-pacredir +++ b/dhcpcd/80-pacredir @@ -3,8 +3,8 @@ case "${reason}" in BOUND|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) # inform pacredir about reestablished connection - 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 ;; PREINIT|EXPIRE|INFORM|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP) 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 |