forked from mirrors_public/oddlama_nix-config
fix: ensure that influxdb2 is restarted for token manipulation
This commit is contained in:
parent
5eacb319db
commit
ad0164c787
2 changed files with 3 additions and 5 deletions
|
@ -100,8 +100,6 @@ in {
|
||||||
|
|
||||||
environment.systemPackages = [pkgs.influxdb2-cli];
|
environment.systemPackages = [pkgs.influxdb2-cli];
|
||||||
|
|
||||||
systemd.services.influxdb2 = {
|
# Do NOT configure RestartSec here, this must be left short to allow token manipulation
|
||||||
after = ["sys-subsystem-net-devices-${utils.escapeSystemdPath "proxy-sentinel"}.device"];
|
systemd.services.influxdb2.after = ["sys-subsystem-net-devices-${utils.escapeSystemdPath "proxy-sentinel"}.device"];
|
||||||
serviceConfig.RestartSec = "600"; # Retry every 10 minutes
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -858,7 +858,7 @@ in {
|
||||||
+ ''
|
+ ''
|
||||||
if [[ $any_tokens_created == 1 ]]; then
|
if [[ $any_tokens_created == 1 ]]; then
|
||||||
echo "Created new tokens, forcing service restart so we can manipulate secrets"
|
echo "Created new tokens, forcing service restart so we can manipulate secrets"
|
||||||
kill "$MAINPID"
|
exit 75 # TEMPFAIL
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue