cluster/services/monitoring: auto-restart grafana
This commit is contained in:
parent
dd7ae319f4
commit
bd94d0d868
1 changed files with 1 additions and 0 deletions
|
@ -107,6 +107,7 @@ in
|
||||||
ExecStart = "${consul.package}/bin/consul lock --shell=false services/grafana ${run}";
|
ExecStart = "${consul.package}/bin/consul lock --shell=false services/grafana ${run}";
|
||||||
# consul uses AF_NETLINK to determine interface addresses, even when just registering a service
|
# consul uses AF_NETLINK to determine interface addresses, even when just registering a service
|
||||||
RestrictAddressFamilies = base.serviceConfig.RestrictAddressFamilies ++ [ "AF_NETLINK" ];
|
RestrictAddressFamilies = base.serviceConfig.RestrictAddressFamilies ++ [ "AF_NETLINK" ];
|
||||||
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue