Page 1 of 1
Need a script to restart Chron (Solved)
Posted: Mon Jun 17, 2024 12:31 pm
by theroar84
I have created a chron schedule that I use on a few PC's with multiple Fossa64 frugal installs per pc. I created a script that will copy the new root into the chron folder. Works like a champ, but I have found that the previous chron schedule still runs until I reboot.
Is there a restart chron command that I can add to my script that copies the updated schedule for me?
This is the code I currently have in the script. When I have a new root (schedule) I just paste it into the sd card folder for updating.
cp -afT /mnt/sdb1/1a/nroot/ /var/spool/cron/crontabs/
I did a search for restart chron cmd line and a few other iterations but came up empty. Thanks for your time.
Re: Ghost Chron or Restart Chron Script
Posted: Mon Jun 17, 2024 12:43 pm
by rockedge
is there a utility here: Menu->System->Pschedue?
Pschedule
is a GUI front-end to set up and manage cron jobs. Might make it easier to use than the command line.
Both methods will work but I have not setup and used cron jobs from the command line in a long time so my tip is try Pschedule
Re: Ghost Chron or Restart Chron Script
Posted: Mon Jun 17, 2024 12:49 pm
by Trapster
Most puppies I've seen use
also
Re: Ghost Chron or Restart Chron Script
Posted: Mon Jun 17, 2024 1:31 pm
by HerrBert
To update edited cronjobs i use echo root > /var/spool/cron/crontabs/cron.update
Works from terminal or script.
Re: Ghost Chron or Restart Chron Script
Posted: Tue Jun 18, 2024 2:02 am
by theroar84
Thanks for all the input. Pschedule is slick, but I like being able to take my working root and just move it to the other Pupsaves.
Will see which tips work better for me. Thanks Herrbert and Trapster for the options!