Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #199645 > unrolled thread
| Started by | kjonca@poczta.onet.pl (Kamil Jońca) |
|---|---|
| First post | 2018-08-31 09:20 +0200 |
| Last post | 2018-09-03 07:10 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.user
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
| From | kjonca@poczta.onet.pl (Kamil Jońca) |
|---|---|
| Date | 2018-08-31 09:20 +0200 |
| Subject | Playing with systemd timers - best practices. |
| Message-ID | <wsLSN-6jJ-3@gated-at.bofh.it> |
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"
[toc] | [next] | [standalone]
| From | Darac Marjal <mailinglist@darac.org.uk> |
|---|---|
| Date | 2018-08-31 22:40 +0200 |
| Message-ID | <wsYmZ-55c-3@gated-at.bofh.it> |
| In reply to | #199645 |
Is there something wrong with systemd-crontab-generator? https://manpages.debian.org/stretch/systemd-cron/systemd-crontab-generator.8.en.html On 31/08/2018 07:59, Kamil Jońca wrote: > 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 > >
[toc] | [prev] | [next] | [standalone]
| From | kjonca@poczta.onet.pl (Kamil Jońca) |
|---|---|
| Date | 2018-09-03 07:10 +0200 |
| Message-ID | <wtPhE-2t7-3@gated-at.bofh.it> |
| In reply to | #199663 |
Darac Marjal <mailinglist@darac.org.uk> writes: > Is there something wrong with systemd-crontab-generator? > > https://manpages.debian.org/stretch/systemd-cron/systemd-crontab-generator.8.en.html Assuming I want to migrate entirely to systemd.timers, I want to know if there is a way not to have many similar entries. (some kind of DRY rule ;) ) KJ -- http://wolnelektury.pl/wesprzyj/teraz/ The major sin is the sin of being born. -- Samuel Beckett
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web