Update systemd services

This commit is contained in:
thiloho
2023-12-16 17:48:13 +01:00
parent 4c173feb66
commit da8b6b8eb0

View File

@@ -175,7 +175,6 @@
todoapp = { todoapp = {
description = "Todo application to plan your daily tasks effectively"; description = "Todo application to plan your daily tasks effectively";
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];
wants = ["network-online.target"];
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
Environment = "PORT=5173 DOTENV_CONFIG_PATH=${config.age.secrets.todos-environment-file.path}"; Environment = "PORT=5173 DOTENV_CONFIG_PATH=${config.age.secrets.todos-environment-file.path}";
@@ -186,6 +185,7 @@
}; };
todoapp-check-due-dates = { todoapp-check-due-dates = {
description = "Set is_overdue for todo in database to true if todo is overdue"; description = "Set is_overdue for todo in database to true if todo is overdue";
wantedBy = ["timers.target"];
path = [ path = [
pkgs.postgresql_15 pkgs.postgresql_15
]; ];
@@ -195,14 +195,12 @@
serviceConfig = { serviceConfig = {
User = "postgres"; User = "postgres";
}; };
wantedBy = ["timers.target"];
partOf = [ "todoapp.service" ]; partOf = [ "todoapp.service" ];
startAt = "daily"; startAt = "daily";
}; };
denbot = { denbot = {
description = "Thilo's Den discord bot"; description = "Thilo's Den discord bot";
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];
wants = ["network-online.target"];
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
ExecStartPre = [ ExecStartPre = [