delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=k5GDaKDUP1sT+SC+No5MY7mBhtwoxS+TIBtiqVopSzy/5o/HYauZ3 | |
3O/3biJo2GKmJi5VO+5UE87InFUu80ueEVsPJQx6Ev3ZHdSCxZVnsgo17V9d1hxF | |
KdODHOb04ysfRrOISCd3lZ5i8bJT7bwqReu7i9D1YYCUCCDhrlxZAs= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=ZK8oiLdbXnz5Le3K+KTClfS1HXc=; b=Esv5vnL6jVzJrBn+RAffmwyU+QLI | |
FxJMmhTnAm0BMtfSOg04FWM76vjQbTqb2uZHU4wNbWHHX9Xc2EmzvDGbnXy3lq2p | |
52EOvR3/tCJiqE6VUqKNnP+Qh0Q9yspqC4tUMspNq/CemXJTwjyNI8HHfioQ2QDd | |
DxCHVQ2na5sXJco= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-4.6 required=5.0 tests=AWL,BAYES_50 autolearn=ham version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Sun, 7 Dec 2014 10:36:49 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: reload ssh configuration without stopping and starting the service? |
Message-ID: | <20141207093649.GF3810@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <885123158 DOT 6572405 DOT 1417938312236 DOT JavaMail DOT yahoo AT jws11171 DOT mail DOT ir2 DOT yahoo DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <885123158.6572405.1417938312236.JavaMail.yahoo@jws11171.mail.ir2.yahoo.com> |
User-Agent: | Mutt/1.5.23 (2014-03-12) |
--drkdbItNQN0oJM6x Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 7 07:45, Marilo wrote: > I know linux has ways to reload configuration files without restarting a = service. >=20 > Is there a way with cygwin's sshd to reload the configuration files witho= ut stopping and starting it. >=20 > I know of net start sshd, net stop sshd, and I have checked cygrunsrv=20= =20 > http://web.mit.edu/cygwin/cygwin_v1.3.2/usr/doc/Cygwin/cygrunsrv.README = I see options for start stop install and remove.=20 >=20 > I don't see any way to reload configuration. The concept of reloading configuration is not supported on the Windows service level. However, something like `systemctl reload' on Linux is just a layer on top of the "real thing", too. See the sshd.service configuration file on Fedora: $ grep -i reload /usr/lib/systemd/system/sshd.service ExecReload=3D/bin/kill -HUP $MAINPID So that's what really happens, systemctl calls kill -HUP on the sshd master process. That's what you can do as well on Cygwin, as long as you're running a shell with admin privileges, for instance: $ ps -e | grep -E 'sshd|cygrunsrv' 3116 4292 3116 1820 ? 1049583 10:29:51 /usr/sbin/sshd 4292 3912 4292 4536 ? 1049583 10:29:34 /usr/sbin/sshd 3912 1 3912 3912 ? 1049583 10:29:34 /usr/bin/cygrunsrv As you can see, the sshd process started by cygrunsrv has the pid 4292, so $ kill -HUP 4292 as admin should do the trick. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --drkdbItNQN0oJM6x Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUhB+xAAoJEPU2Bp2uRE+gVHMP/RWA54b1nWcc3jaO90L6msZr psETGB7rvOO/fKlhQr0xE6ye/q82e3kbGoGiFNDwagknB2DhYciuG4jJuoU2M9rN Tg/x2XG5hgvjikOzZdwGVoY48g8IdPGmjk9bYHFuPhtW5zJH2fPrJ9PXr1c9wAGi pMc7libYZss7bWOP7VMC8x+MJGmW5tCwrpiPF6KJVf8beuAM7i4LgYWearrW7vLC OAQ/m9HAw585zuzJAc66IOgEx0Wupm5j1gNEP7i3z8c83W68ogr8hMyui+rbBeZY zecDWltbFPL1BCp9D5JfMBOe1Bw4WD27AI9pzeaoBnTzcRIk0qW0tOScDqqXQ6m3 JEEZyXDTCDcRJcJoB0ea+M8/gTcBjltwemzIAXQZqz7Qn7vmjAKJ2aUouiRnZ5Rw IXyKwr+XMyXd4MW4q7oeYptmOrUm6/JKy6VYbfFhRJQwzCFSYyFQ3hI3hRV4CmF0 dhw682W1XAIoFmqkX2vcJPyIC8EGo9+9ohjvUoagbA3G8oLwUF08VDI01OHW+fvn PabcaNMMgHJyxsqk0FTAx99TYETnYvfELV/mMUOObCLJtRnH6nIw7CEYuwz3UjRo iTF5HwcpfP0HJmLxBFXWfiJpzJ9LIcP4ui9HcKT4WQ62TASq7ZLdIohbhLAzcAMn iKjCr6QvU/L6LFSwBR3i =+BN7 -----END PGP SIGNATURE----- --drkdbItNQN0oJM6x--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |