Support @reboot command
- Dominant language
- Go
- Stars
- 2.6k
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
Hi there,
I'm currently running supercronic in a docker and it's working great.
I would like to run my script on "boot" e.g. when supercronic is started, as well as at a set interval. Normally in many cron versions we can use the standard @reboot to run a script on reboot, but in my testing it looks like supercronic doesn't currently support this.
Would it be possible to add this functionality? I notice that other shortcuts such as @hourly are supported.
I do have a work-around which is to run a shell script /start-container which simply runs my script and then runs supercronic, but it seems a bit awkward!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing where the existing @hourly shortcut is parsed and where scheduling begins when supercronic starts. Confirm the expected @reboot behavior in the Docker use case, then add coverage alongside the existing shortcut tests so the startup trigger and its completion behavior are verifiable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100