treewide: fix postgres service dependencies
ci/woodpecker/push/check Pipeline was successful Details

Some were missing a `requires` even though they had `after`, and
woodpecker was missing it entirely.
This commit is contained in:
Bruno BELANYI 2023-11-06 20:55:53 +00:00
parent 830e7bb865
commit cc331b73c7
3 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,7 @@ in
systemd.services.drone-server = {
wantedBy = [ "multi-user.target" ];
after = [ "postgresql.service" ];
requires = [ "postgresql.service" ];
serviceConfig = {
EnvironmentFile = [
cfg.secretFile

View File

@ -50,6 +50,7 @@ in
systemd.services = {
tandoor-recipes = {
after = [ "postgresql.service" ];
requires = [ "postgresql.service" ];
serviceConfig = {
EnvironmentFile = cfg.secretKeyFile;

View File

@ -24,6 +24,9 @@ in
};
systemd.services.woodpecker-server = {
after = [ "postgresql.service" ];
requires = [ "postgresql.service" ];
serviceConfig = {
# Set username for DB access
User = "woodpecker";