ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: madKOT <mad_kot@chat.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] init 0
Date: Wed Jun 27 13:58:12 2001
Message-ID: <E15FCAP-000AqJ-00@mail.chat.ru> (raw)
In-Reply-To: <3B39A5AD.BCDD727C@zmail.ru>

HI!

On Wed, 27 Jun 2001 13:21:49 +0400
cornet <cornet@zmail.ru> wrote:

C> Приветствую всех!

C> Че то я не пойму что происходит.
C> Надо мне в последовательность reboot и poweroff то есть init 0 и
C> 6 вставить свой скриптик.

C> Вот  он, просто для проверки работоспособности:
C> #!/bin/sh
C> #chkonfig: 234 95 01
C> #description: myscript
C> echo $1 >> /root/file.log
C> echo "My Script"
C> echo $1

C> exit 0

C> Соответственно положил в /etc/rc.d/init.d и разложил ссылки в
C> иниты.
C> В ините 3 он идет как S95myscript
C> А в 0 и 6 как K01myscript

C> Так вот, при старте системы этот скриптик стартует и ему
C> передается как положено start
C> А вот при останове системы его просто игнорируют, и вместо того
C> что бы его вызвать с параметром stop просто ничего не происходит!

C> В чем дело? Или у меня руки кривые и голову дома забыл??

А надобно чтоб при старте скриптик делал 
touch /var/lock/subsys/myscript
Дело в том, что при останове киляются только те сервисы,
которые отметились в /var/lock/subsys/ 

WBW,
madKOT



  reply	other threads:[~2001-06-27 13:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-27 13:11 cornet
2001-06-27 13:58 ` madKOT [this message]
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=E15FCAP-000AqJ-00@mail.chat.ru \
    --to=mad_kot@chat.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