fix: netcup-dns timer

This commit is contained in:
Daniel Langbein 2023-10-02 16:13:17 +02:00
parent b8aef63af0
commit 709faf9f07
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -53,13 +53,13 @@ in
# Create netcup-dns timer.
systemd.timers."netcup-dns" = {
wantedBy = [ "timers.target" ];
partOf = [ "netcup-dns.service" ];
# https://man.archlinux.org/man/systemd.timer.5
#partOf = [ "netcup-dns.service" ]; # TODO rm this?
timerConfig = {
OnCalendar = "3m";
OnBootSec = "0m";
OnUnitInactiveSec = "3m";
AccuracySec = "15s";
RandomizedDelaySec = "15s";
Persistent = true;
};
};
systemd.services."netcup-dns" = {
@ -69,13 +69,8 @@ in
User = "netcup-dns";
Nice = 19;
IOSchedulingClass = "idle";
#ExecStart = "/run/current-system/sw/bin/netcup-dns";
#ExecStart = "${my-python-packages}/bin/netcup-dns";
ExecStart = "${pkgs.python3.withPackages my-python-packages}/bin/netcup-dns";
};
# path = with pkgs; [
# my-python-packages
# ];
};
# Start Jinja-Compose project during boot.