Sha256: 17563aa4d5f8aaa9f28532e0da1a4a9f275ffe31cf0254d4638be7b3dd523eec

Contents?: true

Size: 361 Bytes

Versions: 110

Compression:

Stored size: 361 Bytes

Contents

#!/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


if [ -f "/bin/systemctl" ]  ; then
  [[ $2 =~ ^(up|down)$ ]] && /bin/systemctl try-restart puppet.service || :
else
  [[ $2 =~ ^(up|down)$ ]] && /sbin/service puppet condrestart || :
fi

Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
puppet-4.4.0 ext/puppet-nm-dispatcher
puppet-4.4.0-x86-mingw32 ext/puppet-nm-dispatcher
puppet-4.4.0-x64-mingw32 ext/puppet-nm-dispatcher
puppet-4.4.0-universal-darwin ext/puppet-nm-dispatcher
puppet-3.8.6 ext/puppet-nm-dispatcher
puppet-3.8.6-x86-mingw32 ext/puppet-nm-dispatcher
puppet-3.8.6-x64-mingw32 ext/puppet-nm-dispatcher
puppet-4.3.2 ext/puppet-nm-dispatcher
puppet-4.3.2-x86-mingw32 ext/puppet-nm-dispatcher
puppet-4.3.2-x64-mingw32 ext/puppet-nm-dispatcher
puppet-3.8.5 ext/puppet-nm-dispatcher
puppet-3.8.5-x86-mingw32 ext/puppet-nm-dispatcher
puppet-3.8.5-x64-mingw32 ext/puppet-nm-dispatcher
puppet-4.3.1 ext/puppet-nm-dispatcher
puppet-4.3.1-x86-mingw32 ext/puppet-nm-dispatcher
puppet-4.3.1-x64-mingw32 ext/puppet-nm-dispatcher
puppet-4.3.0 ext/puppet-nm-dispatcher
puppet-4.3.0-x86-mingw32 ext/puppet-nm-dispatcher
puppet-4.3.0-x64-mingw32 ext/puppet-nm-dispatcher
puppet-3.8.4 ext/puppet-nm-dispatcher