treewide: fix postgres service dependencies
All checks were successful
ci/woodpecker/push/check Pipeline was successful

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 = { systemd.services.drone-server = {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
after = [ "postgresql.service" ]; after = [ "postgresql.service" ];
requires = [ "postgresql.service" ];
serviceConfig = { serviceConfig = {
EnvironmentFile = [ EnvironmentFile = [
cfg.secretFile cfg.secretFile

View file

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

View file

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