From: Vladimir Karpinsky <vkarpinsky@mail.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Несколько @reboot в cron'е
Date: Sat, 17 Sep 2011 23:50:03 +0400
Message-ID: <4E74F9EB.8060402@mail.ru> (raw)
In-Reply-To: <CAOZKmc-jctATjjrdDs7Z=XLD9+0dOGAnpmovFLCXSa=QGJcG1A@mail.gmail.com>
17.09.2011 23:46, Mykola S. Grechukh пишет:
> 2011/9/17 Yury Bushmelev<>:
>> 17 сентября 2011 г. 20:28 пользователь Vladimir Karpinsky
>> <vkarpinsky@mail.ru> написал:
>>> Здравствуйте!
>>>
>>> После загрузке компьютера надо выполнить несколько скриптов. Один из
>>> способов --- попросить это сделать cron через @reboot. Нигде не смог найти
>>> ответ на вопрос: а может ли таких команд быть несколько? Т.е.
>>>
>>> $ crontab -l
>>> @reboot script1
>>> @reboot script2
>>> @reboot script3
>>
>> Исходя из здравого смысла - да, может. Ибо @reboot - это время запуска
>> команды, и крон не ограничивает количество команд, запускаемых в один
>> момент времени.
>
> Есть только одна проблема. эти команды запустятся и при service crond
> restart (который будет выполнен, например, при обновлении пакета
> vixie-cron).
Вообще говоря, это не страшно, но в идеале это должно отработать один раз
после старта системы.
--
С уважением,
Владимир.
prev parent reply other threads:[~2011-09-17 19:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-17 16:28 Vladimir Karpinsky
2011-09-17 17:43 ` Yury Bushmelev
2011-09-17 19:42 ` Vladimir Karpinsky
2011-09-18 8:17 ` Алексей Синицын
2011-09-18 8:55 ` Vladimir Karpinsky
2011-09-18 9:42 ` Алексей Синицын
2011-09-17 19:46 ` Mykola S. Grechukh
2011-09-17 19:50 ` Vladimir Karpinsky [this message]
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=4E74F9EB.8060402@mail.ru \
--to=vkarpinsky@mail.ru \
--cc=community@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 Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git