X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
X-Copfilter: Client is part of local network, skipped Spamassassin
X-Copfilter: Sender is in whitelist, skipped SpamAssassin
From: Matthias Meyer <Matthias.Meyer@gmx.li>
To: cygwin@cygwin.com
Subject: Re: cygrunsrv do not automatic start service
Date: Sat, 19 Jul 2008 12:31:25 +0200
User-Agent: KMail/1.9.7
References: <200807170033.07266.Matthias.Meyer@gmx.li> <487E79A9.2040409@cygwin.com>
In-Reply-To: <487E79A9.2040409@cygwin.com>
MIME-Version: 1.0
Content-Type: text/plain;   charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200807191231.25936.Matthias.Meyer@gmx.li>
X-Copfilter-Originating-IP: 192.168.0.98
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Am Donnerstag 17 Juli 2008 schrieb Larry Hall (Cygwin):
> Matthias Meyer wrote:
> > Hello,
> > 
> > I've installed (cygrunsrv -I) a ssh tunnel with:
> > /usr/bin/autossh -M 0 -o ServerAliveInterval=20 -o 
> > ServerAliveCountMax=3 -N -C -i /etc/.ssh/id_rsa -L 389:localhost:389 
> > user@server.at
> > 
> > Unfortunatly this tunnel will not startet at boot time.
> > If I start the service with cygrunsrv -S it will run.
> > 
> > Any hint?
> 
> You should get this by default.  Check your service under
> "Administrative Tools" then "Services" to see if it is set to
> "Auto".  If not, you can try to force it with "--type auto".
> 
> -- 
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 216 Dalton Rd.                          (508) 893-9889 - FAX
> Holliston, MA 01746

It is set as --type auto.
I found in the logfile of the service (/var/log/forward389.log) a message 
that the hostname (server.at) can not be resolved.
Maybee the network connection has not be finished at the time my service 
will be startet.
It seems that windows do not restart the service after this failure.
Is it possible to start my service after network connection is 'up and 
running' or to restart my service after a failure.

Thanks
Matthias

-- 
Don't Panic

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

