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-3.8.1 ext/puppet-nm-dispatcher
puppet-3.8.1-x86-mingw32 ext/puppet-nm-dispatcher
puppet-3.8.1-x64-mingw32 ext/puppet-nm-dispatcher
puppet-4.1.0 ext/puppet-nm-dispatcher
puppet-4.1.0-x86-mingw32 ext/puppet-nm-dispatcher
puppet-4.1.0-x64-mingw32 ext/puppet-nm-dispatcher
puppet-4.0.0 ext/puppet-nm-dispatcher
puppet-4.0.0-x86-mingw32 ext/puppet-nm-dispatcher
puppet-4.0.0-x64-mingw32 ext/puppet-nm-dispatcher
puppet-3.7.5 ext/puppet-nm-dispatcher
puppet-3.7.5-x86-mingw32 ext/puppet-nm-dispatcher
puppet-3.7.5-x64-mingw32 ext/puppet-nm-dispatcher
puppet-4.0.0.rc1 ext/puppet-nm-dispatcher
puppet-4.0.0.rc1-x86-mingw32 ext/puppet-nm-dispatcher
puppet-4.0.0.rc1-x64-mingw32 ext/puppet-nm-dispatcher
puppet-3.7.4 ext/puppet-nm-dispatcher
puppet-3.7.4-x86-mingw32 ext/puppet-nm-dispatcher
puppet-3.7.4-x64-mingw32 ext/puppet-nm-dispatcher
puppet-3.7.3 ext/puppet-nm-dispatcher
puppet-3.7.3-x86-mingw32 ext/puppet-nm-dispatcher