disabled not working systemd sonarr service

This commit is contained in:
chloe 2024-07-23 22:11:52 +02:00
parent ab464b0200
commit 073bcdea2f

View file

@ -35,25 +35,26 @@ in
enable = true; enable = true;
openFirewall = true; openFirewall = true;
}; };
/*
#TODO: create duplicated instances of Sonarr.
systemd.services."sonarrAnime" = {
enable = true;
description = "Duplicated Sonarr instance, for animes";
after = [
"syslog.target"
"network.target"
];
#TODO: create duplicated instances of Sonarr. path = [ pkgs.sonarr ];
systemd.services."sonarrAnime" = { serviceConfig = {
enable = true; Type = "simple";
description = "Duplicated Sonarr instance, for animes"; User = "sonarr";
after = [ ExecStart = "${pkgs.sonarr}/bin/Sonarr -nobrowser -data=/var/lib/sonarrAnime";
"syslog.target" TimeoutStopSec = "20";
"network.target" KillMode = "process";
]; Restart = "on-failure";
};
path = [ pkgs.sonarr ]; wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "simple";
User = "sonarr";
ExecStart = "${pkgs.sonarr}/bin/Sonarr -nobrowser -data=/var/lib/sonarrAnime";
TimeoutStopSec = "20";
KillMode = "process";
Restart = "on-failure";
}; };
wantedBy = [ "multi-user.target" ]; */
};
} }