www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/05/02/07:17:07

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 542BH6NR3074580
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 542BH6NR3074580
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=so+YheNr
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 716C53858C2F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1746184624;
bh=pQLIRl4rLqDzVvM9cuRrqoZBE85XhBDbNPOcHUe/9Ts=;
h=Date:To:Cc:Subject:In-Reply-To:References:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=so+YheNrI+9NeBTNWtwho/IY1+dASBkozQxSZDuGvk+3+rOW0x8ipeix9O4c9Dz1i
NOUX9aYhmNteApEYFDxqgZPO/dAWU7H5PQCdXrNRMo8WWe7PvqQCi/ZNgV4ZWCbIby
J2p5GixKX1+2U1ItY3UddbIxvSP2YaISgntSTnXE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7AC143858CD1
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7AC143858CD1
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1746184594; cv=none;
b=tZtKC/GrD2+Mp0eCBuPHl7Pvc5bZMeqGh5+OE2aGoKPgxVvOBrwAo4p+2wb8R8tXCmly4ZtvrrgLZxMm1u0ClLZUiHtAZFL8VnuQBRW2u1XuwABHDVrFKQC/MRcv8C4i0Ny/HTyZTUvLs5Sf3N5EgECl9DfT1CaSl6DZwmoILJg=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1746184594; c=relaxed/simple;
bh=Ooen96UiiMFhrmKaTpaD3FPUKpshiKw5WizDWRwvIes=;
h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
b=p9EFCB68j7fGBZosCsPLlOXbop8dupsn+KMP58xiga0/72klopJKhTcV7H2Yp0gTADFVzEFsYRJep/wv6y8iWvXI9RoF2MpCXKPYeL31vD1mtE81yMXirjjFxUR5WmWVgusJU4eSMuig8bImJ+BX0LBFKL98PiHB7R9NvjaP63A=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7AC143858CD1
Date: Fri, 2 May 2025 20:16:31 +0900
To: cygwin AT cygwin DOT com
Cc: Christian Lupien <Christian DOT Lupien AT USherbrooke DOT ca>
Subject: Re: bug with cygserver-config not working anymore
Message-Id: <20250502201631.64564fc27c27bbdcc3d83aab@nifty.ne.jp>
In-Reply-To: <861a1fac721ae16816bcfaf275494a3b6b3321bf.camel@USherbrooke.ca>
References: <861a1fac721ae16816bcfaf275494a3b6b3321bf DOT camel AT USherbrooke DOT ca>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On Wed, 30 Apr 2025 21:30:16 +0000
Christian Lupien wrote:
> On a recent system install, I tried to install cygserver by executing
>  cygserver-config
> but it failed saying that cygserver was already running.
> 
> I have done that same install for many years with success.
> 
> I tracked down the problem to the service discovery line inside the
> script (line 92) that uses:
>  ps -ef | grep -v grep | grep -q ${service_name}
> but since ps -f was changed in commit (2024-01-31)
> 1ce9756ee61e8dff5e3319851e14ebf310a0bdd8 to return the cmdline which it
> did not before, this fails because the script finds itself (cygserver-
> config is found by grep -q ${service_name})
> 
> I think the solution would be to remove the -f option to ps. So a patch
> would be like:
> --- cygserver-config.orig	2025-04-30 17:23:24.461779400 -0400
> +++ cygserver-config	2025-04-30 17:23:47.067576200 -0400
> @@ -89,7 +89,7 @@
>  _nt=`expr "${_sys}" : "CYGWIN_NT"`
>  
>  # Check for running cygserver processes first.
> -if ps -ef | grep -v grep | grep -q ${service_name}
> +if ps -e | grep -v grep | grep -q ${service_name}
>  then
>    echo
>    echo "There is a cygserver (${service_name}) already running. Nothing to do, apparently."

Thanks for the report and patch snippet. I'll push the fix.

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019