From: Alexey Morsov <samurai@ricom.ru> To: community@altlinux.ru Subject: Re: [Comm] firewall and restart Date: Mon, 19 Apr 2004 14:55:05 +0400 Message-ID: <4083B009.7050501@ricom.ru> (raw) In-Reply-To: <200404190747.i3J7l2B28766@localhost.localdomain> Дмитрий Беляев wrote: > 19 Апрель 2004 10:34, Вы написали: > >>Дмитрий Беляев wrote: >> >>>19 Апрель 2004 09:08, Вы написали: >>> >>>>Такое ощущения что cron запускает сохранение раньше rc.local... >>> >>>Дык rc.local выполняется ПОСЛЕ всех инит-скриптов... >> >>А куда же тогда прописать мой restoring чтоб он успешно прошел >> > > > Можно написать скриптик и впихнуть его в иниты перед кроном. > Выйдет чтото типа этого: > > --mystart: > > #!/bin/bash > > firewall > trafficsql -r > > Сохраняем куданибудь, напр. в /usr/local/sbin/ > > Допустим, надо чтобы он стартовал на 3 уровне перед кроном: > > #cd /etc/rc.d/rc3.d > #ls | grep cron > S90cron -- симлинк. > делаем ln -s /usr/local/sbin/mystart /etc/rc.d/rc3.d/S89mystart > Главное, чтобы число после S было меньше, чем у крона. Тогда будет стартовать > перед последним. Мдя... подумаю ка я лучше про daemon-низирование своей программульки > -- С наилучшими пожеланиями, Алексей.
prev parent reply other threads:[~2004-04-19 10:55 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-04-19 6:08 Alexey Morsov 2004-04-19 7:22 ` Дмитрий Беляев 2004-04-19 7:34 ` Alexey Morsov 2004-04-19 7:47 ` Дмитрий Беляев 2004-04-19 10:55 ` Alexey Morsov [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=4083B009.7050501@ricom.ru \ --to=samurai@ricom.ru \ --cc=community@altlinux.ru \ /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