1
0
mirror of https://github.com/nxshock/gron.git synced 2024-11-27 03:41:00 +05:00
SystemD and cron inspired job scheduler
Go to file
2022-03-27 15:11:16 +05:00
tests Initial commit 2022-03-26 13:23:39 +05:00
.gitattributes Initial commit 2022-03-26 13:23:39 +05:00
.gitignore Initial commit 2022-03-26 13:23:39 +05:00
config.go More changes 2022-03-27 12:39:24 +05:00
consts.go More changes 2022-03-27 12:39:24 +05:00
go.mod Fix new project name 2022-03-27 12:43:57 +05:00
go.sum More changes 2022-03-27 12:39:24 +05:00
gron.conf More changes 2022-03-27 12:39:24 +05:00
httpserver.go Log host which sends job requests 2022-03-27 13:12:36 +05:00
index.htm Add running symbol 2022-03-27 15:11:16 +05:00
job_test.go Initial commit 2022-03-26 13:23:39 +05:00
job.go More changes 2022-03-27 12:39:24 +05:00
LICENSE Initial commit 2022-03-26 13:23:39 +05:00
log.go More changes 2022-03-27 12:39:24 +05:00
main.go More changes 2022-03-27 12:39:24 +05:00
make.bat More changes 2022-03-27 12:39:24 +05:00
parser.go Initial commit 2022-03-26 13:23:39 +05:00
README.md Fix new project name 2022-03-27 12:43:57 +05:00
template.go Initial commit 2022-03-26 13:23:39 +05:00

gron

cron-like job scheduler

Usage

  1. Create jobs.d directory
  2. Create job config in jobs.d/job1.conf (TOML format):
    Cron        = "* * * * *"                # cron instructions
    Command     = "echo Hello"               # command to execute
    Description = "print Hello every minute" # job description
    
  3. Launch gron binary
  4. HTTP interface available on http://127.0.0.1:9876