diff options
author | Christian Hesse <mail@eworm.de> | 2020-12-29 20:34:38 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-12-29 20:34:38 +0100 |
commit | c68ed019002cf6a20453f479d96f67c894548927 (patch) | |
tree | 0785e1360e1dc9e411750430478dbc0a32be0392 /networkmanager/80-pacredir | |
parent | 92b814b3eeb8e7edce20904b8a0683758c7ca6bb (diff) | |
download | pacredir-c68ed019002cf6a20453f479d96f67c894548927.tar.gz pacredir-c68ed019002cf6a20453f479d96f67c894548927.tar.zst |
reload via systemd service
Diffstat (limited to 'networkmanager/80-pacredir')
-rwxr-xr-x | networkmanager/80-pacredir | 4 |
1 files changed, 2 insertions, 2 deletions
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 |