mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-21 23:54:22 +01:00
Make vault-agent not freak out on failed service restarts
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
68b2b3b07d
commit
a64b46e61a
|
@ -32,7 +32,7 @@ in
|
|||
pkgs.writeShellScript "envoy-mainsail-reload.sh"
|
||||
''
|
||||
sudo systemd-run -P --machine klipper /run/current-system/sw/bin/bash -l -c \
|
||||
'systemctl try-reload-or-restart ${concatStringsSep " " serviceList}'
|
||||
'systemctl try-reload-or-restart ${concatStringsSep " " serviceList}' || true
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
|
|
@ -166,7 +166,7 @@ in
|
|||
in
|
||||
pkgs.writeShellScript "envoy-grafana-reload.sh" ''
|
||||
sudo systemd-run -P --machine monitor /run/current-system/sw/bin/bash -l -c \
|
||||
'systemctl try-reload-or-restart ${concatStringsSep " " serviceList}'
|
||||
'systemctl try-reload-or-restart ${concatStringsSep " " serviceList}' || true
|
||||
'';
|
||||
}
|
||||
{
|
||||
|
@ -175,7 +175,7 @@ in
|
|||
'';
|
||||
destination = "/run/secrets/envoy-blowhole.token";
|
||||
command = pkgs.writeShellScript "envoy-blowhole-reload.sh" ''
|
||||
sudo systemctl try-reload-or-restart hashicorp-envoy-telegraf
|
||||
sudo systemctl try-reload-or-restart hashicorp-envoy-telegraf || true
|
||||
'';
|
||||
}
|
||||
{
|
||||
|
@ -185,7 +185,7 @@ in
|
|||
destination = "/run/secrets/monitor/telegraf.env";
|
||||
command = pkgs.writeShellScript "monitor-telegraf-reload.sh" ''
|
||||
sudo systemd-run -P --machine monitor /run/current-system/sw/bin/bash -l -c \
|
||||
'systemctl try-reload-or-restart telegraf'
|
||||
'systemctl try-reload-or-restart telegraf' || true
|
||||
'';
|
||||
}
|
||||
{
|
||||
|
@ -198,7 +198,7 @@ in
|
|||
perms = "0644";
|
||||
command = pkgs.writeShellScript "monitor-telegraf-reload.sh" ''
|
||||
sudo systemd-run -P --machine monitor /run/current-system/sw/bin/bash -l -c \
|
||||
'systemctl try-reload-or-restart grafana'
|
||||
'systemctl try-reload-or-restart grafana' || true
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue