Skip to content

Commit

Permalink
handle the none init style in reload
Browse files Browse the repository at this point in the history
We still want to reload the service even if we don't overwrite the
init files. Assume some sort of reasonable default, which is "service
reload": that works in debian (init.d or systemd) and elsewhere.
  • Loading branch information
anarcat committed Nov 28, 2019
1 parent 0e51cbf commit c1adc1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions manifests/service_reload.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
'sles' => "/etc/init.d/${init_selector} reload",
'debian' => "/etc/init.d/${init_selector} reload",
'launchd' => "launchctl stop ${init_selector} && launchctl start ${init_selector}",
'none' => "service ${init_selector} reload",
}

exec { 'prometheus-reload':
Expand Down

0 comments on commit c1adc1c

Please sign in to comment.