* [devel] Re: detecting old initscripts versus new service
@ 2004-08-26 21:12 Илья Евсеев
2004-08-26 21:26 ` Dmitry V. Levin
0 siblings, 1 reply; 2+ messages in thread
From: Илья Евсеев @ 2004-08-26 21:12 UTC (permalink / raw)
To: devel
> From: Michael Shigorin <mike@osdn.org.ua>
>> Как корректнее определять, что установлено на компьютере:
>> старый initscripts с daemon и killproc,
>> или новый service с start_daemon и stop_daemon?
>> [ -e /etc/init.d/functions-compat ]
> Именно так.
Только, наверное, что-то требуется добавить "BuildPreReq: initscripts", потому что иначе же в hasher'e просто не окажется нужного файла.
Из-за этого, наверное, не сработал и нынешний %(rpm -q --requires initscripts | grep service) - на живом компьютере они есть, а в момент сборки внутри hasher'а - нет.
Кстати, а чем вариант с %(rpm -q ... | grep) хуже проверки файла?
С уважением,
Илья Евсеев
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [devel] Re: detecting old initscripts versus new service
2004-08-26 21:12 [devel] Re: detecting old initscripts versus new service Илья Евсеев
@ 2004-08-26 21:26 ` Dmitry V. Levin
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2004-08-26 21:26 UTC (permalink / raw)
To: ALT Devel discussion list
[-- Attachment #1: Type: text/plain, Size: 944 bytes --]
On Fri, Aug 27, 2004 at 01:12:51AM +0400, Илья Евсеев wrote:
> >> Как корректнее определять, что установлено на компьютере:
> >> старый initscripts с daemon и killproc,
> >> или новый service с start_daemon и stop_daemon?
>
> >> [ -e /etc/init.d/functions-compat ]
>
> > Именно так.
>
> Только, наверное, что-то требуется добавить "BuildPreReq: initscripts", потому что иначе же в hasher'e просто не окажется нужного файла.
Нет, не требуется:
$ rpmquery --qf '%{NAME}\n' -f /etc/init.d/functions-compat
service
> Из-за этого, наверное, не сработал и нынешний %(rpm -q --requires initscripts | grep service) - на живом компьютере они есть, а в момент сборки внутри hasher'а - нет.
Если на живом компьютере есть пакет initscripts, то это признак того, что
компьютер живёт уже очень долго.
> Кстати, а чем вариант с %(rpm -q ... | grep) хуже проверки файла?
Тем, что этот вариант не всегда работает.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-26 21:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-26 21:12 [devel] Re: detecting old initscripts versus new service Илья Евсеев
2004-08-26 21:26 ` Dmitry V. Levin
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