* cygrunsrv do not automatic start service
@ 2008-07-16 22:33 Matthias Meyer
2008-07-16 22:44 ` Larry Hall (Cygwin)
2008-07-16 22:51 ` René Berber
0 siblings, 2 replies; 7+ messages in thread
From: Matthias Meyer @ 2008-07-16 22:33 UTC (permalink / raw)
To: cygwin
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?
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: cygrunsrv do not automatic start service
2008-07-16 22:33 cygrunsrv do not automatic start service Matthias Meyer
@ 2008-07-16 22:44 ` Larry Hall (Cygwin)
2008-07-19 10:32 ` Matthias Meyer
2008-07-16 22:51 ` René Berber
1 sibling, 1 reply; 7+ messages in thread
From: Larry Hall (Cygwin) @ 2008-07-16 22:44 UTC (permalink / raw)
To: 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
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: cygrunsrv do not automatic start service
2008-07-16 22:33 cygrunsrv do not automatic start service Matthias Meyer
2008-07-16 22:44 ` Larry Hall (Cygwin)
@ 2008-07-16 22:51 ` René Berber
2008-07-19 10:22 ` Matthias Meyer
1 sibling, 1 reply; 7+ messages in thread
From: René Berber @ 2008-07-16 22:51 UTC (permalink / raw)
To: cygwin
Matthias Meyer wrote:
> 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?
Several:
- Did you add the environment string required (AUTOSSH_NTSERVICE)?
- Did you add a dependency to the network? (not required but it makes
sense);
- Did you install the service to run as your account? (OpenSSH refuses
to run if the access to the keys is too lax, or if it has no access as
in other users don't have access to your keys).
The command line I used for installation is (with obfuscated password of
course):
$ cygrunsrv --install autossh --path /usr/bin/autossh --env
"AUTOSSH_NTSERVICE=yes" --args "-M 0 -F /etc/autossh/ssh_config.remote
rberber@example.com" --user rberber --passwd SECRET -y tcpip
The configuration file, ssh_config.remote has all the options for ssh:
$ cat /etc/autossh/ssh_config.legosoft
Host example.com
AddressFamily inet
BatchMode yes
#BindAddress 127.0.0.1
CheckHostIP no
Compression yes
LocalForward localhost:3333 sunfire:3333
Protocol 2
TCPKeepAlive yes
I found that using other options, like User, IdentityFile,
UserKnownHostsFile, and HostName made the whole tunnel fail, I really
don't know why, I didn't experiment further.
--
René Berber
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: cygrunsrv do not automatic start service
2008-07-16 22:51 ` René Berber
@ 2008-07-19 10:22 ` Matthias Meyer
0 siblings, 0 replies; 7+ messages in thread
From: Matthias Meyer @ 2008-07-19 10:22 UTC (permalink / raw)
To: cygwin
Am Donnerstag 17 Juli 2008 schrieb René Berber:
> Matthias Meyer wrote:
>
> > 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?
>
> Several:
>
> - Did you add the environment string required (AUTOSSH_NTSERVICE)?
> - Did you add a dependency to the network? (not required but it makes
> sense);
> - Did you install the service to run as your account? (OpenSSH refuses
> to run if the access to the keys is too lax, or if it has no access as
> in other users don't have access to your keys).
>
> The command line I used for installation is (with obfuscated password of
> course):
>
> $ cygrunsrv --install autossh --path /usr/bin/autossh --env
> "AUTOSSH_NTSERVICE=yes" --args "-M 0 -F /etc/autossh/ssh_config.remote
> rberber@example.com" --user rberber --passwd SECRET -y tcpip
>
> The configuration file, ssh_config.remote has all the options for ssh:
>
> $ cat /etc/autossh/ssh_config.legosoft
> Host example.com
> AddressFamily inet
> BatchMode yes
> #BindAddress 127.0.0.1
> CheckHostIP no
> Compression yes
> LocalForward localhost:3333 sunfire:3333
> Protocol 2
> TCPKeepAlive yes
>
> I found that using other options, like User, IdentityFile,
> UserKnownHostsFile, and HostName made the whole tunnel fail, I really
> don't know why, I didn't experiment further.
> --
> René Berber
>
If I start the service with cygrunsrv -S or from Windows-GUI
("Administrative Tools", "Services") it will run. Therefore I dont believe
that the parameters or configuration are not ok.
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: cygrunsrv do not automatic start service
2008-07-16 22:44 ` Larry Hall (Cygwin)
@ 2008-07-19 10:32 ` Matthias Meyer
2008-07-19 10:43 ` Brian Dessent
0 siblings, 1 reply; 7+ messages in thread
From: Matthias Meyer @ 2008-07-19 10:32 UTC (permalink / raw)
To: cygwin
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: cygrunsrv do not automatic start service
2008-07-19 10:32 ` Matthias Meyer
@ 2008-07-19 10:43 ` Brian Dessent
2008-07-19 12:16 ` Matthias Meyer
0 siblings, 1 reply; 7+ messages in thread
From: Brian Dessent @ 2008-07-19 10:43 UTC (permalink / raw)
To: cygwin
Matthias Meyer wrote:
> Is it possible to start my service after network connection is 'up and
> running' or to restart my service after a failure.
Please read the replies that you have already received, specifically the
one where René suggested that you configure the service with a
dependency on the network (-y tcpip).
Brian
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: cygrunsrv do not automatic start service
2008-07-19 10:43 ` Brian Dessent
@ 2008-07-19 12:16 ` Matthias Meyer
0 siblings, 0 replies; 7+ messages in thread
From: Matthias Meyer @ 2008-07-19 12:16 UTC (permalink / raw)
To: cygwin
Am Samstag 19 Juli 2008 schrieb Brian Dessent:
> Matthias Meyer wrote:
>
> > Is it possible to start my service after network connection is 'up and
> > running' or to restart my service after a failure.
>
> Please read the replies that you have already received, specifically the
> one where René suggested that you configure the service with a
> dependency on the network (-y tcpip).
>
> Brian
>
I don't recognize the option -y tcpip.
Now I try it but it do not work for me.
In Windows ("Administrative Tools" then "Services") I found the dependencie
to Service "TCP/IP Protokolltreiber" but no running service with that name.
I will try with other services (DHCP-CLient and/or DNS-Client) and tell you
about (un)success.
Thanks so far
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-07-19 12:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-16 22:33 cygrunsrv do not automatic start service Matthias Meyer
2008-07-16 22:44 ` Larry Hall (Cygwin)
2008-07-19 10:32 ` Matthias Meyer
2008-07-19 10:43 ` Brian Dessent
2008-07-19 12:16 ` Matthias Meyer
2008-07-16 22:51 ` René Berber
2008-07-19 10:22 ` Matthias Meyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).