build01: replace cron with timer for healthcheck
This commit is contained in:
parent
652901560f
commit
904f3cfbc2
1 changed files with 4 additions and 5 deletions
|
@ -44,11 +44,10 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.cron.enable = true;
|
systemd.services.healthcheck-ping = {
|
||||||
services.cron.systemCronJobs = [
|
startAt = "*:0/5"; # every 5 minutes
|
||||||
# record that this machine is alive
|
serviceConfig.ExecStart = "${pkgs.curl}/bin/curl -X POST -sfL https://hc-ping.com/fcf6c029-5b57-44aa-b392-923f3d894dd9";
|
||||||
"*/5 * * * * root ${pkgs.curl}/bin/curl -X POST -sfL https://hc-ping.com/fcf6c029-5b57-44aa-b392-923f3d894dd9"
|
};
|
||||||
];
|
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue