Skip to content

Commit

Permalink
Merge pull request #3 from tarjei/master
Browse files Browse the repository at this point in the history
Systemd does not see all shutdowns as failures
  • Loading branch information
brutus333 committed May 9, 2016
2 parents 0a16901 + b5b9b1c commit 6022395
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/alert_manager.systemd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ExecStart=<%= scope.lookupvar('prometheus::alert_manager::bin_dir') %>/alert_man
-storage.path=<%= scope.lookupvar('prometheus::alert_manager::storage_path') %> <%= scope.lookupvar('prometheus::alert_manager::extra_options') %>
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
Restart=always
RestartSec=42s

[Install]
Expand Down
2 changes: 1 addition & 1 deletion templates/node_exporter.systemd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ExecStart=<%= scope.lookupvar('prometheus::node_exporter::bin_dir') %>/node_expo
-collectors.enabled=<%= scope.lookupvar('prometheus::node_exporter::collectors').join(',') %> <%= scope.lookupvar('prometheus::node_exporter::extra_options') %>
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
Restart=always
RestartSec=42s

[Install]
Expand Down
2 changes: 1 addition & 1 deletion templates/prometheus.systemd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ExecStart=<%= scope.lookupvar('prometheus::bin_dir') %>/prometheus \
-storage.local.path=<%= scope.lookupvar('prometheus::localstorage')%> <%= scope.lookupvar('prometheus::extra_options') %>
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
Restart=always
RestartSec=42s

[Install]
Expand Down

0 comments on commit 6022395

Please sign in to comment.