mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-27 02:12:45 +03:00
Merge fort-nix/nix-bitcoin#530: onion-services: don't propagate restart of onion-addresses
to depending services
a3490dfc0f
onion-services: don't propagate restart of `onion-addresses` to depending services (Erik Arvstedt) Pull request description: ACKs for top commit: jonasnick: utACKa3490dfc0f
Tree-SHA512: a060e22d6db5b986d41d50b4efff1d24fd514a4faae6152e37521681e373b074d18d901f274d182445a8446fd7fcee1b6b2728bc3fda8f2f1b97a77d92a93aeb
This commit is contained in:
commit
8404385d60
@ -376,6 +376,9 @@ in {
|
||||
# are not restarted when the secrets target restarts.
|
||||
# The secrets target always restarts when deploying with one of the methods
|
||||
# in ./deployment.
|
||||
#
|
||||
# TODO-EXTERNAL: Instead of `wants`, use a future systemd dependency type
|
||||
# that propagates initial start failures but no restarts
|
||||
wants = [ "nix-bitcoin-secrets.target" ];
|
||||
after = [ "network.target" "nix-bitcoin-secrets.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
@ -80,7 +80,9 @@ in {
|
||||
systemd.services = let
|
||||
onionAddresses = [ "onion-addresses.service" ];
|
||||
in genAttrs publicServices (service: {
|
||||
requires = onionAddresses;
|
||||
# TODO-EXTERNAL: Instead of `wants`, use a future systemd dependency type
|
||||
# that propagates initial start failures but no restarts
|
||||
wants = onionAddresses;
|
||||
after = onionAddresses;
|
||||
});
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user