Deutsch   English   Français   Italiano  
<slrnt327bv.opc.lhh+news-no_spam@hercule.home.arpa>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Jacques L'helgoualc'h <lhh+news-no_spam@free.fr.isnt.invalid>
Newsgroups: fr.comp.os.linux.configuration
Subject: Re: /etc/init.d/ script le xinetd fait =?UTF-8?Q?d=C3=A9faut?=
Supersedes: <slrnt32787.opc.lhh+news-no_spam@hercule.home.arpa>
Date: Tue, 15 Mar 2022 23:13:03 -0000 (UTC)
Organization: Aucune.
Lines: 25
Message-ID: <slrnt327bv.opc.lhh+news-no_spam@hercule.home.arpa>
References: <slrnt2n0fh.aj.patrick@LAPTOP-0154LRG9.localdomain>
 <slrnt2nbpk.2l5.dyrmak@quelite.terre>
 <slrnt2p15k.1j.patrick@LAPTOP-0154LRG9.localdomain>
 <slrnt2p1rs.1j.patrick@LAPTOP-0154LRG9.localdomain>
 <20220312130051.76336799@coffee.novazur.fr>
 <slrnt2pqld.1h.patrick@LAPTOP-0154LRG9.localdomain>
 <20220312162032.36e58940@coffee.novazur.fr>
 <slrnt2q0tu.1h.patrick@LAPTOP-0154LRG9.localdomain>
 <20220312173522.3ca3ba6f@coffee.novazur.fr>
 <slrnt2rgq7.bl.patrick@LAPTOP-0154LRG9.localdomain>
 <20220313101738.41700ffa@coffee.novazur.fr>
 <slrnt2uaff.1h.patrick@LAPTOP-0154LRG9.localdomain>
 <slrnt2uh09.j1e.dyrmak@quelite.terre>
 <20220314183721.411e78e1@coffee.novazur.fr>
 <slrnt30mlb.14h.lhh+news-no_spam@hercule.home.arpa>
 <20220315182123.29448a9f@coffee.novazur.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 15 Mar 2022 23:13:03 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="73c6c1706bfe2b12641f0ee7a0b21b97";
	logging-data="16106"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/ISBFaI3fMReL2XFXyUNVR"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Key: sha1:NdwzSkLsDCjxy3QP6+8Mql6fkO8=
Cancel-Lock: sha1:5Dq/PHibbLa9p1zxq/PlZE2h42g=
Bytes: 3111

Le 15-03-2022, Christophe PEREZ a écrit :
> Le Tue, 15 Mar 2022 09:21:47 -0000 (UTC),
> Jacques L'helgoualc'h <lhh+news-no_spam@free.fr.isnt.invalid> a écrit :
>
>> > Et pourquoi locate ?
>> > Un ls suffira très largement pour vérifier que /etc/init.d/xinetd
>> > existe ou pas.  
>> 
>> En pinaillant, c'est insuffisant et inexact :
>>  ls -l pour vérifier que xinetd est là où il faut, exécutable et
>> non-vide ; locate trouvera aussi tous les
>> /*/ailleurs/*/etc/init.d/xinetd* ...
>
> Dans l'absolu, oui, évidemment, mais dans le contexte, non, puisque il
> (le demandeur) ne le cherche QUE dans /etc/init.d/, donc au pire, même
> s'il le trouvait ailleurs, ça n'aurait pour lui aucun intérêt. Et on
> sait bien en plus, tous les 2, qu'il a quand même peu de chances de
> trouver le "bon" script ailleurs, installé par le package.
> Donc pour revenir au sujet, l'usage de locate dans "locate
> /etc/init.d/xinetd" n'a aucun intérêt dans le contexte de la demande.

Très lourdingue, bien sûr --- mais l'option « -l » de ls est plus utile.

Par ailleurs, locate peut parfois dénicher un modèle de fichier du côté
par exemple de /usr/share/doc/**/examples/etc.