Account managers services should be "oneshot"

Making these services "oneshot" services means that other services
will wait for them to finish.
This commit is contained in:
Peter Jones 2019-06-20 12:02:49 -07:00
parent dacaa53e48
commit 66525b8df1
No known key found for this signature in database
GPG key ID: 9DAFAA8D01941E49
2 changed files with 2 additions and 0 deletions

View file

@ -157,6 +157,7 @@ in
after = [ "influxdb.service" ] ++ keyservices;
wants = keyservices;
path = [ config.services.influxdb.package ];
serviceConfig.Type = "oneshot";
script =
# Configure authentication:
(optionalString cfg.auth.enable ''

View file

@ -269,6 +269,7 @@ in
wantedBy = [ "postgresql.service" ];
after = [ "postgresql.service" ] ++ afterservices;
wants = afterservices;
serviceConfig.Type = "oneshot";
script = ''
set -e