ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sasha Martsinuk <scampler@ukr.net>
To: community@altlinux.ru
Subject: [Comm] программа как сервис на консоли
Date: Mon, 24 Nov 2003 22:28:59 +0200
Message-ID: <632948000.20031124222859@ukr.net> (raw)

Здравствуйте, community.

Помогите пожалуйста со скриптом для запуска отдельной программы как
сервиса при загрузке системы, чтоб программа висела на одной из
неиспользуемых виртуальных консолей (через open?).
Хочется корректно управлять работой программы через
service xxx start|stop|restart|reload, chkconfig xxx on|off
Такое я видел после установки trafshow - в /etc/rc.d/init.d/scripts появился
скрипт, который запускал trafshow при загрузке системы на tty11 или
12, уже не помню. Но скрипт был кривой и отказывался нормально
работать с service start|stop.

Из приложений я хочу использовать тот же trafshow, hlds_l (выделенный
сервер для Контр-Страйка), возможно отображение почтовой очереди, etc.

Хочу скорее шаблон, чем готовый скрипт, ибо неплохо бы самому разобратся.

-- 
С уважением,
 Sasha                          mailto:scampler@ukr.net



                 reply	other threads:[~2003-11-24 20:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=632948000.20031124222859@ukr.net \
    --to=scampler@ukr.net \
    --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