Skip to content

sweta-sv/gitleaks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gronit

A Cron monitor and interface written in Go.

Features:
  • Remotely update crontabs
  • View active crontabs in a browser
  • Add cron jobs to crontab locally via json or yaml
  • View run logs of jobs in a browser
Server:
$ ./gronit start
  • view your crontab: curl localhost:3231/list
  • add jobs to crontab via curl:
     curl -H 'Content-Type:application/json' -d \
     "[{\"name\":\"example_post\",
     \"second\":\"*\",
     \"hour\":\"*\",
     \"minute\":\"*\",
     \"day\":\"*\",
     \"month\":\"*\",
     \"command\":\"echo post\"}]" http://localhost:3231/add
    
    • /add accepts POST requests with a JSON array containing job objects. See example request here
Local Usage:

You can use gronit to add cron jobs to your crontab in more readable forms.

Yaml: ./gronit --loadyaml {yamlfile}

JSON: ./gronit --loadjson {jsonfile}

TODO:

  • Assign keys to individual jobs so they can be remotely opperated on
  • Include hook like cronitor has to update status of the job
  • Finish handlers: remove, logs, update

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages