ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Maxim Bodyansky <maximbo@rambler.ru>
To: community@altlinux.ru
Subject: Re: [Comm] синтаксис скриптов
Date: 18 Dec 2004 17:14:36 +0300
Message-ID: <m3llbvy9pv.fsf@maximbo.istranet.ru> (raw)
In-Reply-To: <200412181214.56132.krapa@uraltc.ru>

Andrey Konovalov aka Krapa <krapa@uraltc.ru> writes:

> В сообщении от 18 Декабрь 2004 10:59 Ivan Fedorov написал(a): 
> OK. Тогда чего не хватает такому скрипту:
> 
> #!/bin/sh
> #
> # chkconfig 5 91 10
> #
> # description: fvcool start script
> #
> 
> start()
> {
> fvcool -e -v
> }
> 
> stop()
> {
> fvcool -d -v
> }
> 
> restart()
> {
> stop
> start
> }

Может быть вот этого в конце скрипта?

case "$1" in
    start)
	    start
	    ;;
    stop)
	    stop
        ;;
    restart)
        restart
        ;;
    *)
        echo "Usage: ${0##*/} {start|stop|restart|}"
	RETVAL=1
esac

exit $RETVAL


  parent reply	other threads:[~2004-12-18 14:14 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-16 13:06 Andrey Konovalov aka Krapa
2004-12-16 14:41 ` Andrey Rahmatullin
2004-12-16 18:04   ` Andrey Konovalov aka Krapa
2004-12-17  4:39     ` Maxim Bodyansky
2004-12-17  7:24       ` Andrey Konovalov aka Krapa
2004-12-17  7:51         ` Mike Lykov
2004-12-17 14:40           ` Andrey Konovalov aka Krapa
2004-12-18  2:15           ` Andrey Konovalov aka Krapa
2004-12-18  5:58             ` Mike Lykov
2004-12-18  5:59             ` Ivan Fedorov
2004-12-18  7:14               ` Andrey Konovalov aka Krapa
2004-12-18 11:46                 ` Ivan Fedorov
2004-12-18 12:05                   ` [Comm] " Michael Shigorin
2004-12-18 20:40                   ` [Comm] " Yura Kalinichenko
2004-12-18 14:14                 ` Maxim Bodyansky [this message]
2004-12-18 16:17                   ` Andrey Konovalov aka Krapa
2004-12-18 17:56                 ` Nikolay A. Fetisov
2004-12-18 18:22                   ` Andrey Konovalov aka Krapa
2004-12-20  6:03                 ` Alexey I. Froloff
2004-12-20  7:00                   ` Andrey Konovalov aka Krapa
2004-12-18 14:09             ` Maxim Bodyansky
2004-12-17 18:38 ` [Comm] " Michael Shigorin
2004-12-17 22:57   ` Andrey Konovalov aka Krapa

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=m3llbvy9pv.fsf@maximbo.istranet.ru \
    --to=maximbo@rambler.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