Re: Scheduling sequential systemd tasks

2021-07-21 Thread Joe Zeff
On 7/21/21 12:54 PM, John W. Himpel wrote: Cron and anacron do not handle well the circumstances where the server is down during the time, the cron/anacron job is supposed to start. Really? That's exactly what anacron was designed to do. ___ users

Re: Scheduling sequential systemd tasks

2021-07-21 Thread Joe Zeff
On 7/21/21 12:29 PM, John W. Himpel wrote: I can't seem to find the proper set of systemd options to set in the service file for TASKB to cause it to run upon completion of TASKA. Suggestions are welcome. Why not create a shell script that runs the two tasks in sequence and run it through

Re: Scheduling sequential systemd tasks

2021-07-21 Thread Garry T. Williams
On Wednesday, July 21, 2021 2:29:00 PM EDT John W. Himpel wrote: > I would like to run a task (TASKA) that updates some files at a > specified time each day. I already can do that successfully using > systemd timers and services. Upon completion of TASKA, I want to > run TASKB with is an rsync

Re: Scheduling sequential systemd tasks

2021-07-21 Thread Jonathan Billings
On Wed, Jul 21, 2021 at 08:46:32PM +0200, Bob Marcan wrote: > Why do you need systemd for this? What is wrong with cron? Systemd timers can launch tasks with a lot more options than Cron has. Dependencies and explicit ordering of tasks is actually one of the big reasons systemd was created. Cron

Re: Scheduling sequential systemd tasks

2021-07-21 Thread Jonathan Billings
On Wed, Jul 21, 2021 at 01:29:00PM -0500, John W. Himpel wrote: > > I would like to run a task (TASKA) that updates some files at a specified > time each day. I already can do that > successfully using systemd timers and services. > Upon completion of TASKA, I want to run TASKB with is an rsync

Re: Scheduling sequential systemd tasks

2021-07-21 Thread John W. Himpel
On Wed, 2021-07-21 at 11:46 -0700, Doug H. wrote: > On Wed, Jul 21, 2021, at 11:29 AM, John W. Himpel wrote: > > I would like to run a task (TASKA) that updates some files at a > > specified time each day.  I already can do that > > successfully using systemd timers and services. > > Upon

Re: Scheduling sequential systemd tasks

2021-07-21 Thread Doug H.
On Wed, Jul 21, 2021, at 11:29 AM, John W. Himpel wrote: > I would like to run a task (TASKA) that updates some files at a > specified time each day. I already can do that > successfully using systemd timers and services. > Upon completion of TASKA, I want to run TASKB with is an rsync command

Re: Scheduling sequential systemd tasks

2021-07-21 Thread Bob Marcan
On Wed, 21 Jul 2021 13:29:00 -0500 "John W. Himpel" wrote: > I would like to run a task (TASKA) that updates some files at a specified > time each day. I already can do that > successfully using systemd timers and services. > Upon completion of TASKA, I want to run TASKB with is an rsync

Scheduling sequential systemd tasks

2021-07-21 Thread John W. Himpel
I would like to run a task (TASKA) that updates some files at a specified time each day. I already can do that successfully using systemd timers and services. Upon completion of TASKA, I want to run TASKB with is an rsync command to propagate any file changes made in TASK A to other hosts.