Skip to content

Commit

Permalink
Merge pull request voxpupuli#31 from byblakout/patch-1
Browse files Browse the repository at this point in the history
Reload Prometheus service instead of restarting
  • Loading branch information
bastelfreak authored Jun 21, 2017
2 parents 8d80752 + 8498e29 commit a385127
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manifests/run_service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@

if $prometheus::manage_service == true {
service { 'prometheus':
ensure => $prometheus::service_ensure,
name => $init_selector,
enable => $prometheus::service_enable,
ensure => $prometheus::service_ensure,
name => $init_selector,
enable => $prometheus::service_enable,
hasrestart => true,
restart => '/usr/bin/pkill -HUP prometheus',
}
}
}

0 comments on commit a385127

Please sign in to comment.