From: Alexey Shabalin <a.shabalin@gmail.com>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Быстрая замена кронтабов на таймеры
Date: Fri, 3 Nov 2017 15:14:56 +0300
Message-ID: <CAEdvWkSz8cHGx27Re=HyiNz6dR+iJRmAzUY56u99hDUa1CW7tQ@mail.gmail.com> (raw)
In-Reply-To: <de2a9e35-4287-0055-92a9-eb60492eba1d@gmail.com>
3 ноября 2017 г., 11:25 пользователь В.А. Илларионов
<gbimobou@gmail.com> написал:
> 28.10.2017 13:11, Anton Farygin пишет:
>>
>> 28.10.2017 05:11, Вадим Илларионов пишет:
>>>
>>> Оформил бы в вики, но, полагаю, имеет смысл как-то унифицировать для
>>> последующего применения. Может, и впрямь doit поменять на cron или
>>> timers?
>>> Во всяком случае, подобного решения не встречал ни в родном, ни в
>>> иноязычных руководствах. Хотя, вроде бы, само напрашивается. Всё же
>>> Леннарт гений - почти как Ленин :)
>>>
>> Интересное решение. Надо упакечивать
>
>
> Со спеками я работал, но тут поскриптовать при установке надо, и что-то
> опасаюсь я.
> В праздники попробую разобраться с этим.
>
>> 2. Включил и запустил периодические таймеры:
>>
>> for time in minute hour dai week month year; do
>>
>> for act in enable start; do
>>
>> systemctl $act doit@${time}ly.timer
>>
>> done
>>
>> done
>
>
> Даже проще:
>
> for do in enable start; do
> systemctl $do
> doit@${minute,hour,dai,week,month,quarter,semi-annual,year}ly.timer
> done
А вы видели вот эти проекты:
https://github.com/systemd-cron
тут собраны разные реализации генератора таймеров на основе crontab.
Так же там описаны таймеры:
boot,
hourly,
daily,
weekly,
monthly,
yearly,
minutely,
quarterly,
semi-annually
В планах есть упаковать, как замену cron. Но руки все не доходят.
Нарисовал таймер для logrotate, и отключил crond у себя.
Больше никаких заданий в кроне нет, поэтому и успокоился :)
--
Alexey Shabalin
next prev parent reply other threads:[~2017-11-03 12:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-24 10:23 В.А. Илларионов
2017-10-28 2:11 ` [sisyphus] " Вадим Илларионов
2017-10-28 5:11 ` [sisyphus] " Anton Farygin
2017-11-03 8:25 ` В.А. Илларионов
2017-11-03 12:14 ` Alexey Shabalin [this message]
2017-11-06 3:58 ` Вадим Илларионов
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAEdvWkSz8cHGx27Re=HyiNz6dR+iJRmAzUY56u99hDUa1CW7tQ@mail.gmail.com' \
--to=a.shabalin@gmail.com \
--cc=shaba@altlinux.ru \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git