0

Ubuntu version of cron doesn't support timezones with CRON_TZ.

Part of cron jobs should be run up in local timezone (and it's different on servers).

What alternative to default cron service can I use for my problem?

Dmitry
  • 179
  • 1
  • 2
  • 8

1 Answers1

2

Since you already have systemd in place, I think that would be the most obvious option.

You can start units with timers, which can be scheduled with OnCalendar which has a lot of flexibility, including expressions such as Mon *-*-* 00:00:00 Pacific/Auckland.

Håkan Lindqvist
  • 33,741
  • 5
  • 65
  • 90
  • I thought about this solution, but the problem is I have to create a service for each job instead of adding a simple line to cron. – Dmitry Feb 15 '18 at 08:09
  • 1
    @DmitryR it's not clear why that's a problem. In fact, it sounds easier to manage. – jordanm Feb 15 '18 at 15:01