|
|
|
|
|
by rnhmjoj
3904 days ago
|
|
I agree: I recently moved my scripts from crontab to systemd timers and there is no going back.
Finally I have a proper way to debug and log. Also on NixOS I can have the unit file and timer generated in very few lines.
Look at this one for example: "xkcd" = {
description = "send latest xkcd comic";
wants = [ "network.target" ];
startAt = "Mon,Wed,Fri *:0/30";
path = with pkgs; [ telegram-cli ];
serviceConfig = {
User = "rnhmjoj";
Type = "oneshot";
ExecStart = "${cabal}/bin/xkcd";
};
} // basicEnv;
|
|