ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: community@lists.altlinux.org
Subject: Re: [Comm] halt
Date: Sat, 23 Aug 2008 22:41:54 +0300
Message-ID: <20080823194154.GX3310@osdn.org.ua> (raw)
In-Reply-To: <g8ml8j$28v$1@ger.gmane.org>

On Fri, Aug 22, 2008 at 10:16:36PM +0700, Ivan Petrov wrote:
> >>>Я хочу, чтобы некая программа выполнялась при выключении
> >>>Альтлинуха.  Куда ее можно вписать?
> >>В 6-й ранлевел ...
> >Бишь см. /etc/rc.d/rc6.d/ и /etc/rc.d/init.d/template
> >в качестве образца.
> Там в директории куча файлов.

Надо ещё один нарисовать.

> Мне надо чтобы при "выключить компьютер" выполнилась:
> java -jar /home/ivan/jmonitor/console.jar -u *** -p *** close
> Куда ее можно вписать?

По-хорошему -- в скрипт на основе указанного template, который
будет лежать в init.d/ и на который при помощи chkconfig(8) можно
будет создать ссылку из rc6.d/.  По-быстрому -- в какой-нить
/etc/rc.d/rc6.d/S00jmonitor одной строчкой...

> З.Ы. В сад? Учиться скрипты писать?

Ну почему в сад -- учиться :-)

Поищите "bash конспект".

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


      parent reply	other threads:[~2008-08-23 19:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-22 10:31 Ivan Petrov
2008-08-22 10:49 ` Dmitriy Kruglikov
2008-08-22 10:55   ` Michael Shigorin
2008-08-22 15:16     ` Ivan Petrov
2008-08-22 16:01       ` Denis Kirienko
2008-08-22 16:50         ` Ivan Petrov
2008-08-23  8:34       ` Dmitriy Kruglikov
2008-08-23 19:41       ` Michael Shigorin [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=20080823194154.GX3310@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=community@lists.altlinux.org \
    --cc=shigorin@gmail.com \
    /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