diff options
author | CoprDistGit <infra@openeuler.org> | 2024-10-23 10:05:14 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-10-23 10:05:14 +0000 |
commit | 288ab590ff7f6857d03c04cad4b7606565e06a79 (patch) | |
tree | 4f2cbdde059acf33e9c7a64c8bf8813fe1702a3c /puppet-nm-dispatcher.systemd | |
parent | 3f25439125bc14b7a81b0dd366fb028609107d67 (diff) |
automatic import of puppetopeneuler22.03_LTS_SP4
Diffstat (limited to 'puppet-nm-dispatcher.systemd')
-rw-r--r-- | puppet-nm-dispatcher.systemd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet-nm-dispatcher.systemd b/puppet-nm-dispatcher.systemd new file mode 100644 index 0000000..3e5eeee --- /dev/null +++ b/puppet-nm-dispatcher.systemd @@ -0,0 +1,8 @@ +#!/bin/bash +# +# Restart puppet on network changes to pickup changes to /etc/resolv.conf +# +# https://projects.puppetlabs.com/issues/2776 +# https://bugzilla.redhat.com/532085 + +[[ $2 =~ ^(up|down)$ ]] && /bin/systemctl condrestart puppetagent.service || : |