Solved! Re: Cygrunsrv problem starting service created with --user

Michael Bourgon michael_bourgon@yahoo.com
Thu Dec 26 20:20:00 GMT 2002


I finally found the problem with not being able to
start my service (kept getting: cygrunsrv: Error
starting a service: QueryServiceStatus:  Win32 error
1062: The service has not been started.).

WRONG:
cygrunsrv --install rsync_daemon --user
'mynetwork\theusername' --path /usr/bin/rsync -a
"--daemon --no-detach"

RIGHT:
cygrunsrv --install "rsync daemon" --user
'mynetwork\theusername' --path /usr/bin/rsync -a
"--daemon --no-detach"

Note the quoting around the service description - it
apparently requires them.  Thing to note: if done
correctly, it'll accept ANY password, then give you a
logon failure message when you try to start it with:
 cygrunsrv --start "rsync daemon" 

One more way to see if you're doing it right.

Anyhow, hope this helps someone else along the way - I
hate to think I wasted this many hours of my life for
nothing.  But I now have a running service, and life
is good.  


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list