aboutsummaryrefslogtreecommitdiffstats
path: root/dhcpcd
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-12-29 20:34:38 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-12-29 20:34:38 +0100
commitc68ed019002cf6a20453f479d96f67c894548927 (patch)
tree0785e1360e1dc9e411750430478dbc0a32be0392 /dhcpcd
parent92b814b3eeb8e7edce20904b8a0683758c7ca6bb (diff)
downloadpacredir-c68ed019002cf6a20453f479d96f67c894548927.tar.gz
pacredir-c68ed019002cf6a20453f479d96f67c894548927.tar.zst
reload via systemd service
Diffstat (limited to 'dhcpcd')
-rw-r--r--dhcpcd/80-pacredir4
1 files changed, 2 insertions, 2 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)