Switch the exec to reload the systemd daemon to only occur when the
puppet module updates the systemd unit file.
Change-Id: Ifb32b67b0a42c9ee1096522f6413d441fad312ee
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
match => '^Environment.*',
after => 'ExecStart=/opt/opendaylight/bin/start',
}
- ->
+ ~>
exec {'reload_systemd_units':
- command => 'systemctl daemon-reload',
- path => '/bin'
+ command => 'systemctl daemon-reload',
+ path => '/bin',
+ refreshonly => true,
}
}