Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #199645

Playing with systemd timers - best practices.

From kjonca@poczta.onet.pl (Kamil Jońca)
Newsgroups linux.debian.user
Subject Playing with systemd timers - best practices.
Date 2018-08-31 09:20 +0200
Message-ID <wsLSN-6jJ-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Recently I found that systemd has timers which can replace (and extend)
cron functionality.

My question is:
I have crontab like this:
--8<---------------cut here---------------start------------->8---
1 * * * *   script.sh site1
3 * * * *   script.sh site2
9 * * * *   script.sh site3
2 * * * *   script.sh site4
(... some similar entries ...)
--8<---------------cut here---------------end--------------->8---

Obvious way to migrate entries is create service template + some timers
calling this service.

But iss any smart way to make timer template and parameterise it?
KJ


-- 
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
Like all young men, you greatly exaggerate the difference between one
young woman and another.
		-- George Bernard Shaw, "Major Barbara"

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Playing with systemd timers - best practices. kjonca@poczta.onet.pl (Kamil Jońca) - 2018-08-31 09:20 +0200
  Re: Playing with systemd timers - best practices. Darac Marjal <mailinglist@darac.org.uk> - 2018-08-31 22:40 +0200
    Re: Playing with systemd timers - best practices. kjonca@poczta.onet.pl (Kamil Jońca) - 2018-09-03 07:10 +0200

csiph-web