delorie.com/archives/browse.cgi | search |
Brian Dessent wrote: > Hmm. You should also check that /etc/cygserver.conf is readable by > SYSTEM and that /var/log/cygserver.log is readable and writable by > SYSTEM. You could always just do "chown SYSTEM:root" and "chmod 644" on > them if unsure, but I suspect they're fine. Well, you're on the right track. Adding -d to the cygserver options caused Event Viewer to come up with this: cygserver : PID 800 : starting service `' failed: redirect_fd: open (1, /var/log/cygserver.log): 2, No such file or directory. So I tried (numerous times) setting the perms both from bash and Windows to no avail. Tried deleting and re-creating the file. Here is a partial transcript: michael AT michael /var/log $ rm cygserver.log rm: remove write-protected file `cygserver.log'? y $ touch cygserver.log $ chown SYSTEM:root cygserver.log $ chmod 644 cygserver.log $ ls -l cygserver.log -rw-r--r-- 1 SYSTEM root 0 Sep 29 11:47 cygserver.log $ cygrunsrv -S cygserver cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. $ chmod 777 cygserver.log $ cygrunsrv -S cygserver cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Error message in Event Viewer repeats the "No such file or directory" error. Would sure appreciate some ideas. One thing, when I installed this cygwin I checked the "Install For Just Me" option. Could this have anything to do with it? Thanks, Michael -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |