From: cornet <cornet@zmail.ru> To: "mandrake-russian@altlinux.ru" <mandrake-russian@altlinux.ru> Subject: [mdk-re] init 0 Date: Wed Jun 27 13:11:00 2001 Message-ID: <3B39A5AD.BCDD727C@zmail.ru> (raw) Приветствую всех! Че то я не пойму что происходит. Надо мне в последовательность reboot и poweroff то есть init 0 и 6 вставить свой скриптик. Вот он, просто для проверки работоспособности: #!/bin/sh #chkonfig: 234 95 01 #description: myscript echo $1 >> /root/file.log echo "My Script" echo $1 exit 0 Соответственно положил в /etc/rc.d/init.d и разложил ссылки в иниты. В ините 3 он идет как S95myscript А в 0 и 6 как K01myscript Так вот, при старте системы этот скриптик стартует и ему передается как положено start А вот при останове системы его просто игнорируют, и вместо того что бы его вызвать с параметром stop просто ничего не происходит! В чем дело? Или у меня руки кривые и голову дома забыл?? Причем мне важно, что бы при останове системы, этот скриптик отрабатывал _после_ останова некоторых сервисов, но _до_ останова сети. -- ******** FIRE & STEEL ********
next reply other threads:[~2001-06-27 13:11 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-06-27 13:11 cornet [this message] 2001-06-27 13:58 ` madKOT 2001-06-27 14:17 ` cornet
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=3B39A5AD.BCDD727C@zmail.ru \ --to=cornet@zmail.ru \ --cc=mandrake-russian@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