Note: Awecron requires root privileges and written by random guy on the internet. Understand the risks before using it.
Awecron is a small and simple custom cron that has something similar between anacron and crontab. The main use case for it is for desktop users however nothing limits using it on a server.
The aim of this project is to create extremely minimal software that user is supposed to understand and debug on the technical level.
- extremely minimal and easy to read
- would still run if misses cronjob run time (if comparing with crontab)
- no complicated time logic (if comparing with anacron and using on desktop)
- sudo / opendoas
- bash
- clone the repo
- delete all hidden directories
- change the configurable environment variables in
main.sh - configure the cronjob inside of template directory as you wish
- make sure permissions are set securely to prevent privilege escalation
- run main.sh as root like a daemon
binis a binary or a shell script that supposed to runtimeris an essential file that is automatically changed after last run to when the next time thebinwill runconfigcontains configuration variables for the cronjobnameoptional name for logsuserwhat user runs thebinintrinterval in seconds
When awecron runs it checks and runs through every directory in the repo. It checks if the current time is more than in timer file of the selected cronjob, if yes then it will run the bin and set the timer again.