Re: systemd unit timer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sun, Aug 9, 2020 at 12:20 AM Vini Harimoorthy <vini6452@xxxxxxxxx> wrote:
Hi Team,


Is there a way to specify the "start  date & time" of the timer unit with calendar timer  ? 

For example, the below timer units runs every weekly from the service is activated.My requirement is that I need to run the timer unit only after the 10th month i.e."2020-10-1"  
[Unit]
Description=Run foo weekly

[Timer]
_OnCalendar_=weekly
Persistent=true

[Install]
WantedBy=timers.target


The "weekly" _expression_ is just a shorthand for "Mon *-*-* 00:00:00". So, instead of
using weekly, you could explicitly specify October, November and December in your
_OnCalendar_= statement.  i.e

_OnCalendar_=Mon *-10,11,12-* 00:00:00

Regards,
Ronnie P. Thomas
 
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux