Closed whezzel closed 4 months ago
I'm pretty sure Cron doesn't need to be installed as it should be standard in linux installs? however the services and cron are optional so you are able to implement your own setup if you so choose.
It depends on the distro. The distro I primarily use doesn't have cron installed by default. I did implement this manually, though I thought I would mention it here as another option, especially since this already uses systemd service units for running the script.
I'll close this if there is no interest in officially implementing this.
Yeah I can make a note to add it in the wiki docs as an alternative method, out of curiosity what distro are you running that cron is not included.
I use arch. cron is in the repos, just not included in the base packages.
Added new section to docs referencing the above setting with a note about it in automation under the cron section.
Sorry to reopen this. I just noticed there is a typo. In step 1, it says this Create a timer unit file at /etc/systemd/system/klipper-backup.time
but it should be Create a timer unit file at /etc/systemd/system/klipper-backup.timer
Fixed
@whezzel thanks, all in all we are very open for pull request. So if you see anything which can be improved in the docs, just switch to this branch and open a PR. Again: thanks for the hint!
Is your feature request related to a problem? Please describe.
systemd already has support for timers removing the requirement to install cron.
Describe the solution you'd like
Create a timer unit file at
/etc/systemd/system/klipper-backup.time
Create a service file at
/etc/systemd/system/klipper-backup.service
Once both files are created, run
systemctl daemon-reload
then enable the systemd timersystemctl enable --now klipper-backup.timer
. The timer will run the service file every 4 hours.Describe alternatives you've considered
I tried the cron option, but I don't see the need to install cron when systemd already supports timers.
Additional information
No response