Re: Setting env var CYGWIN for Cygwin service?

2021-01-04 Thread Bill Stewart
On Mon, Jan 4, 2021 at 3:08 PM Oleksandr Gavenko wrote: > /usr/bin/exim-config has line with: > > cygrunsrv -I exim -p /usr/bin/exim -e CYGWIN="${cygenv}" ... > > So it is the answer (as pointed by others). > > Still "procexp" doesn't show anything else besides PATH/WINDIR for "exim" > process.

Re: Setting env var CYGWIN for Cygwin service?

2021-01-04 Thread Oleksandr Gavenko via Cygwin
On 2020-12-30, Oleksandr Gavenko via Cygwin wrote: > What way can I pass env var "CYGWIN" to the Cygwin service? Today I reinstalled Cygwin & Exim. "exim-config" script asked me: Enter the value of CYGWIN for the daemon: [] /usr/bin/exim-config has line with:

Re: Setting env var CYGWIN for Cygwin service?

2020-12-31 Thread Brian Inglis
On 2020-12-31 08:04, Bill Stewart wrote: On Wed, Dec 30, 2020 at 1:09 PM Oleksandr Gavenko wrote: What way can I pass env var "CYGWIN" to the Cygwin service? cygrunsrv --help shows this: -e, --env Optional environment strings which are added to the environment when service is st

Re: Setting env var CYGWIN for Cygwin service?

2020-12-31 Thread Oleksandr Gavenko via Cygwin
On 2020-12-31, Bill Stewart wrote: > cygrunsrv --help shows this: > > -e, --env Optional environment strings which are added > to the environment when service is started. You can add up to 255 > environment strings using the `--env' option. I made experiment few minutes ago (was curious to pa

Re: Setting env var CYGWIN for Cygwin service?

2020-12-31 Thread Oleksandr Gavenko via Cygwin
On 2020-12-31, Franz Fehringer via Cygwin wrote: > Cygwin inherits Windows environment variables, this should be the simplest > take. Normally does, no doubt. So I made `srv.c`: #include int main() { sleep(60); } compiled: gcc -o srv.exe srv.c registered: cygrunsrv -I mysr

Re: Setting env var CYGWIN for Cygwin service?

2020-12-31 Thread Bill Stewart
On Wed, Dec 30, 2020 at 1:09 PM Oleksandr Gavenko wrote: > What way can I pass env var "CYGWIN" to the Cygwin service? cygrunsrv --help shows this: -e, --env Optional environment strings which are added to the environment when service is started. You can add up to 255 enviro

Re: Setting env var CYGWIN for Cygwin service?

2020-12-31 Thread Franz Fehringer via Cygwin
Cygwin inherits Windows environment variables, this should be the simplest take. Am 30.12.2020 um 21:09 schrieb Oleksandr Gavenko via Cygwin: Hi! What way can I pass env var "CYGWIN" to the Cygwin service? There are no that many influential options here: https://cygwin.com/cyg

Setting env var CYGWIN for Cygwin service?

2020-12-30 Thread Oleksandr Gavenko via Cygwin
Hi! What way can I pass env var "CYGWIN" to the Cygwin service? There are no that many influential options here: https://cygwin.com/cygwin-ug-net/using-cygwinenv.html I can think of "winsymlinks:native" or "wincmdln". Process Explorer shows following env

basename , grep , dirname commands not found when using iu-config , syslogd-config, cygwin-service-installation-helper.sh

2016-09-21 Thread shu
'[' '!' -f /etc/syslog.conf ']' + '[' '!' -f /etc/xinetd.d/ftpd ']' + '[' '!' -f /etc/xinetd.d/talk ']' + '[' '!' -f /etc/xinetd.d/telnet ']' + '[' '!' -f /e

Re: (gold star) Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-17 Thread Andrew Schulman
> I'd like to give Ralph a self-indulgent gold star for the first time > ever suggestion that I have a thick skin. > > Oh, and now that I think of it, he deserves one for his setup.exe > contributions too. He's a tireless supporter of the setup.exe command > line. Done. -- Problem reports:

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-17 Thread Christoph Herdeg
2009 19:42 Subject:Re: "ssh-host-config" now involves "cygwin-servi

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-17 Thread Christoph Herdeg
Subject:Re: "ssh-host-config" now involves "cygwin-service-install

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-17 Thread Christoph Herdeg
Subject:Re: "ssh-host-config" now involves "cygwin-service-install

Re: (gold star) Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-16 Thread Ralph Hempel
Christopher Faylor wrote: On Thu, Jul 16, 2009 at 10:54:58AM -0400, Ralph Hempel wrote: Christoph Herdeg wrote: Hey what's up with you? Wasn't my message nice or informative enough for you? I thought my description would be helpful and you guys were interested in optimizing packages. Obviously

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-16 Thread Steven Hartland
- Original Message - From: "Christoph Herdeg" Great to see that at least you guys have fun and enjoy yourselves. I very hope to have "made your days". Thank you again for your superb help! You're great people! The way you answer to people seeking for help speaks for itself. I hope the

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-16 Thread Christopher Faylor
On Thu, Jul 16, 2009 at 06:36:14PM +0200, Corinna Vinschen wrote: >Other than that, the script was originally a help for the normal Joe and >Jane User, not for company admins which should basically know what they >are doing. If you want ssh-host-config to become a kitchen sink for all >environment

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-16 Thread Corinna Vinschen
On Jul 16 18:14, Christoph Herdeg wrote: > Great to see that at least you guys have fun and enjoy yourselves. I very > hope to have "made your days". Thank you again for your superb help! You're > great people! > > The way you answer to people seeking for help speaks for itself. I hope the > googl

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-16 Thread Christoph Herdeg
16.07.2009 16:55 Subject:Re: "ssh-host-config" now involves "cy

(gold star) Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-16 Thread Christopher Faylor
On Thu, Jul 16, 2009 at 10:54:58AM -0400, Ralph Hempel wrote: >Christoph Herdeg wrote: >> Hey what's up with you? Wasn't my message nice or informative enough for >> you? I thought my description would be helpful and you guys were interested >> in optimizing packages. Obviously I am wrong: > > > >

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-16 Thread Ralph Hempel
Christoph Herdeg wrote: Hey what's up with you? Wasn't my message nice or informative enough for you? I thought my description would be helpful and you guys were interested in optimizing packages. Obviously I am wrong: I'm not sure how cgf and Corinna manage to move let alone type with the t

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-16 Thread Christoph Herdeg
Date: 16.07.2009 14:56 Subject:Re: "ssh-host-config" now invo

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-16 Thread Corinna Vinschen
On Jul 16 14:01, Christoph Herdeg wrote: > ssh-host-config and all other associated scripts and tools should in my > opinion be fully aware of all these states; currently they are not. If you http://cygwin.com/acronyns/#SHTDI http://cygwin.com/acronyns/#PTC > need machines for testing, I can prov

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-16 Thread Christoph Herdeg
Subject:Re: "ssh-host-config" now involves "cygwin-service-install

RE: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-08 Thread Stephan Mueller
Cristoph wrote: " Would it be possible for you to be a tiny little bit more eloquent? " " On Jul 8 14:32, Christoph Herdeg wrote: " > We have to use Lotus Notes here, so TOFU is quite impossible: sorry. " > " > Would it be possible to just use the whole OpenSSH-package from 1.7? " " No. Um, sorry

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-08 Thread Christopher Faylor
On Wed, Jul 08, 2009 at 03:22:08PM +0200, Christoph Herdeg wrote: >On Wed, Jul 08, 2009 at 03:13:10PM +0200, Corinna Vinschen wrote: >>On Wed, Jul 08, 2009 at 02:32:04PM +0200, Christoph Herdeg wrote: >>>On Wed, Jul 08, 2009 at 01:10:04PM +0200, Corinna Vinschen wrote: You can either just try u

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-08 Thread Christoph Herdeg
Subject:Re: "ssh-host-config" now involves "cygwin-service-install

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-08 Thread Corinna Vinschen
On Jul 8 14:32, Christoph Herdeg wrote: > We have to use Lotus Notes here, so TOFU is quite impossible: sorry. > > Would it be possible to just use the whole OpenSSH-package from 1.7? No. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Le

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-08 Thread Christoph Herdeg
Subject:Re: "ssh-host-config" now involves "cygwin-service-install

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-08 Thread Corinna Vinschen
On Jul 8 12:05, Christoph Herdeg wrote: > Hello Corinna, > > thank you for your answer - that's great news! Currently we're planning to > stay on Cygwin 1.5 as long as 1.7 is not declared final and stable. How > would I be able to get OpenSSH 5.2p1-3 into my 1.5 installation? http://cygwin.com/a

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-08 Thread Christoph Herdeg
2009 11:52 Subject:Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

Re: "ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-07 Thread Corinna Vinschen
sh-host-config" now stops and requests the name of a privileged user > instead of as before simply creating a privileged user "sshd_server" with > the given password. After doing some checks we found that latterly > "cygwin-service-installation-helper.sh" is involved i

"ssh-host-config" now involves "cygwin-service-installation-helper.sh"

2009-07-06 Thread Christoph Herdeg
mply creating a privileged user "sshd_server" with the given password. After doing some checks we found that latterly "cygwin-service-installation-helper.sh" is involved in the process. Why? My personal opinion: If I give "ssh-host-config" the parameter "-y", the pro

Re: Cygwin service fails to start because of duplicate dll

2009-07-02 Thread Christopher Faylor
On Thu, Jul 02, 2009 at 02:23:15PM -0400, Stephen Wilkinson wrote: >In case anyone else encounters problems starting services because of >duplicate cygwin1.dll on the path, here is how I found out that the >duplicate was the problem and the workaround I use: This is covered in the FAQ: http://cygw

Cygwin service fails to start because of duplicate dll

2009-07-02 Thread Stephen Wilkinson
Dear All, In case anyone else encounters problems starting services because of duplicate cygwin1.dll on the path, here is how I found out that the duplicate was the problem and the workaround I use: After installing sshd (with ssh-host-config script), I could start the service from the comm

Re: Running cygwin service via cygrunsrv under account without password in Win XP Pro - impossible?

2005-06-07 Thread Corinna Vinschen
On Jun 6 23:11, Vadym Voznyuk wrote: > From: "Corinna Vinschen" <[EMAIL PROTECTED]> http://cygwin.com/acronyms/#PCYMTNQREAIYR > >["Accounts: Limit local account use of blank password > >to console logon only."] > > Could you please add a short notice about this feature in cygrunsrv.README?

Re: Running cygwin service via cygrunsrv under account without password in Win XP Pro - impossible?

2005-06-06 Thread Carlo Florendo
Vadym Voznyuk wrote: - Original Message - From: "Andrew Schulman" <[EMAIL PROTECTED]> Uh, ummm. Please http://cygwin.com/acronyms/#PCYMTNQREAIYR To: Sent: Friday, June 03, 2005 8:31 AM Subject: Re: Running cygwin service via cygrunsrv under account without pa

Re: Running cygwin service via cygrunsrv under account without password in Win XP Pro - impossible?

2005-06-06 Thread Vadym Voznyuk
- Original Message - From: "Corinna Vinschen" <[EMAIL PROTECTED]> To: Sent: Monday, June 06, 2005 3:32 AM Subject: Re: Running cygwin service via cygrunsrv under account without password in Win XP Pro - impossible? This happens only if my account has no password

Re: Running cygwin service via cygrunsrv under account without password in Win XP Pro - impossible?

2005-06-06 Thread Vadym Voznyuk
- Original Message - From: "Andrew Schulman" <[EMAIL PROTECTED]> To: Sent: Friday, June 03, 2005 8:31 AM Subject: Re: Running cygwin service via cygrunsrv under account without password in Win XP Pro - impossible? -w, --passwd Optional password for user. Only nee

Re: Running cygwin service via cygrunsrv under account without password in Win XP Pro - impossible?

2005-06-06 Thread Corinna Vinschen
On Jun 3 06:20, Vadym Voznyuk wrote: > Hi everybody! > > When I try to run autossh as a service under my account, cygrunsrv gives > error message: > > cygrunsrv: Error starting a service: StartService: Win32 error 1069: > The service did not start due to a logon failure. > > This happens only

Re: Running cygwin service via cygrunsrv under account without password in Win XP Pro - impossible?

2005-06-03 Thread Andrew Schulman
> cygrunsrv: Error starting a service: StartService: Win32 error 1069: > The service did not start due to a logon failure. > > This happens only if my account has no password. Once I set any password - > it works great. Autossh starts under cygrunsrv as a service under my account > and sets all

Running cygwin service via cygrunsrv under account without password in Win XP Pro - impossible?

2005-06-03 Thread Vadym Voznyuk
Hi everybody! When I try to run autossh as a service under my account, cygrunsrv gives error message: cygrunsrv: Error starting a service: StartService: Win32 error 1069: The service did not start due to a logon failure. This happens only if my account has no password. Once I set any passwor

Re: cygwin service

2002-10-28 Thread Gerrit P. Haase
Uwe schrieb: > Use: "/bin/cygrunsrv -I apache -p /usr/sbin/httpd -a '-k' " instead. Why isn't this information in /usr/doc/apche-xxx.README included? Can you please add it for the next release? When will be the next release (apache-1.3.27 or httpd-2.0.43)? Gerrit -- =^..^= -- Unsubscribe inf

Re: cygwin service

2002-10-04 Thread Uwe Mayer
Hallo Christoffer, Friday, October 4, 2002, 1:58:28 PM, you wrote: CW> I can see the sshd runs as 'service' even when I close the CW> shell window, thats nice. I wanted to do the same with apache, CW> I did: '/sbin/cygrunsrv -I apache -p /usr/sbin/apachectl -a start' CW> However, when I do: '/

Re: cygwin service

2002-10-04 Thread vince
try 'cygrunsrv -I apache -p /usr/sbin/apachectl start -k' as thats what works for me. - Original Message - From: "Christoffer Walther" <[EMAIL PROTECTED]> To: "Max Bowsher" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, October 0

cygwin service

2002-10-04 Thread Christoffer Walther
I can see the sshd runs as 'service' even when I close the shell window, thats nice. I wanted to do the same with apache, I did: '/sbin/cygrunsrv -I apache -p /usr/sbin/apachectl -a start' However, when I do: '/bin/cygrunsrv -S apache', I get : ".. error startign service, QueryServiceStatus: wi

Use cygwin service in cluster

2002-01-08 Thread Tiffany Chan
I added Cygwin service in cluster (win2000). When the cluster failover from node A to B, I would like to run a batch file in node B during cygwin is started in node B. The batch file (file.bat) simply is: cd h:\ chown -Rf UserA:GroupA * Can I add this batch file to inetd.exe or somewhere, so