From: Alexey Morsov <samurai@ricom.ru> To: community@altlinux.ru Subject: [Comm] firewall and restart Date: Mon, 19 Apr 2004 10:08:16 +0400 Message-ID: <40836CD0.4050406@ricom.ru> (raw) Привет, Господа, сил моих нет - ну что за свинство такое... Хочу наверное странного - чтоб счетчики iptables сохранялись при перезагрузке... Написал скриптик который по крону (раз в 3 минуты) собирает циферки и закидывает их в mysql... Он же может (по параметру) восстановить их обратно. Соответственно: в rc.local прописываю firewall # загружаем правила trafficsql -r # восстанавливаем счетчики В итоге - вот если я эти же команды запущу ручками - все нормально срабатывает Как и задумано. А при перезагружзе компа имеем то что в базу сохраняються нулевый значения (специально глядел на экран при загрузке - строка Restored от моего скрипта там проскакивает... ) Такое ощущения что cron запускает сохранение раньше rc.local... Можно тут что-нибудь сделать? Обидно терять счетчики из-за того что электричество вырубили в субботу. -- С наилучшими пожеланиями, Алексей.
next reply other threads:[~2004-04-19 6:08 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-04-19 6:08 Alexey Morsov [this message] 2004-04-19 7:22 ` Дмитрий Беляев 2004-04-19 7:34 ` Alexey Morsov 2004-04-19 7:47 ` Дмитрий Беляев 2004-04-19 10:55 ` Alexey Morsov
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=40836CD0.4050406@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