Also initially load crontab jobs

This commit is contained in:
2025-06-27 18:35:43 +02:00
parent efaa9759c9
commit b39ff059be
2 changed files with 6 additions and 1 deletions

BIN
crontabd/crontabd.exe (Stored with Git LFS)

Binary file not shown.

View File

@@ -59,6 +59,11 @@ func main() {
logger.Error("Failed to watch crontab file: %v", err)
return
}
err = loadCronJobs()
if err != nil {
logger.Error("Failed to load initial cron jobs: %v", err)
return
}
for event := range events {
logger.Info("Crontab file updated: %s", event.Name)
// Reload cron jobs when file changes