systemd calendar

onran

New Member
Joined
Feb 12, 2021
Messages
2
Reaction score
1
Credits
17
Hi,

a service should start on weekdays every 2 hours from 8 am to 4 pm. The service starts every 2 hours, however, it starts 5 times. What's wrong with this statement?

OnCalendar=Mon..Fri *-*-* 08..16/2:*:*

thanks
 


THere's nothing wrong with it. It's first start is at 8:00 am and it's last start is at 4 pm. If you don't want it to start at 4:00 pm (the fifth start, since that is on a 2 hour increment), then the stop time should be sometime before 4:00pm.
 
THere's nothing wrong with it. It's first start is at 8:00 am and it's last start is at 4 pm. If you don't want it to start at 4:00 pm (the fifth start, since that is on a 2 hour increment), then the stop time should be sometime before 4:00pm.

many thanks for your help jglen490
 

Members online


Top