cleaner systemd

This commit is contained in:
Osman Faruk Bayram 2025-11-07 10:18:33 +03:00
parent 4adc8da597
commit 0c67559965

View file

@ -74,7 +74,9 @@ in
config.services.wanikani-stats.port
];
systemd.services.wanikani-stats = {
systemd = {
services = {
wanikani-stats = {
description = "WaniKani Stats Service";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
@ -89,7 +91,7 @@ in
};
# Timer to restart the service every 12 hours
systemd.services.wanikani-stats-restart = {
wanikani-stats-restart = {
description = "Restart WaniKani Stats Service";
serviceConfig = {
Type = "oneshot";
@ -97,8 +99,9 @@ in
User = "root";
};
};
};
systemd.timers.wanikani-stats-restart = {
timers.wanikani-stats-restart = {
description = "Timer to restart WaniKani Stats Service every 12 hours";
wantedBy = [ "timers.target" ];
timerConfig = {
@ -108,4 +111,5 @@ in
};
};
};
};
}