ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] detecting old initscripts versus new service
@ 2004-08-26 13:11 Илья Евсеев 
  2004-08-26 15:30 ` [devel] " Michael Shigorin
  0 siblings, 1 reply; 2+ messages in thread
From: Илья Евсеев  @ 2004-08-26 13:11 UTC (permalink / raw)
  To: devel

  Всем привет!
Как корректнее определять, что установлено на компьютере:
старый initscripts с daemon и killproc,
или новый service с start_daemon и stop_daemon?

Сейчас я проверяю так:
[ -n "$(rpm -q --requires initscripts | grep service)" ] \
&& echo new M24 || echo old M22
... но этот вариант при контрольной сборке в incoming почему-то выбрал M22.

Другой вариант:
[ -e /etc/init.d/functions-compat ] \
&& echo new M24 || echo old M22

Как лучше?

С уважением,
Илья Евсеев


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [devel] Re: detecting old initscripts versus new service
  2004-08-26 13:11 [devel] detecting old initscripts versus new service Илья Евсеев 
@ 2004-08-26 15:30 ` Michael Shigorin
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Shigorin @ 2004-08-26 15:30 UTC (permalink / raw)
  To: devel

On Thu, Aug 26, 2004 at 05:11:56PM +0400, Илья Евсеев  wrote:
> Как корректнее определять, что установлено на компьютере:
> старый initscripts с daemon и killproc,
> или новый service с start_daemon и stop_daemon?
> [ -e /etc/init.d/functions-compat ] 

Именно так.

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-26 15:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-26 13:11 [devel] detecting old initscripts versus new service Илья Евсеев 
2004-08-26 15:30 ` [devel] " Michael Shigorin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git