Re: error 1062 when starting distccd
Mark schrieb: > Here is someone's solution that uses "cygrunsrv": > http://lists.samba.org/archive/distcc/2004q1/001960.html Based on this I suggest the following command line to install it: $ cygrunsrv \ --install distccd \ --path /usr/bin/distccd.exe \ --args "--no-detach --daemon" \ --disp "Cygwin distccd" \ --env "CYGWIN=ntsec tty" $ cygrunsrv -S distccd Seems to run. $ ps -e | grep distcc 251219162512 2032? 18 10:49:22 /usr/bin/distccd 210425122512 2104? 18 10:49:22 /usr/bin/distccd 215625122512 2156? 18 10:49:24 /usr/bin/distccd 213625122512 2136? 18 10:49:25 /usr/bin/distccd Attached is a script, would be nice to have it in the original source distribution, there is this neat examples directory;) For Cygwin it could be part of the binary distribution as 'distccd-config' script in /usr/bin, though should be similar to the sshd-config script then. Gerrit -- =^..^= -- 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/
RE: error 1062 when starting distccd
Here is someone's solution that uses "cygrunsrv": http://lists.samba.org/archive/distcc/2004q1/001960.html > > You could try the following alternatives to > "cygrunsrv": > >Start distccd - > > /usr/bin/distccd --daemon --nice 4 --log-file > /var/log/distccd.log --pid-file /var/run/distccd.pid > >Stop distccd - > > if [ -f /var/run/distccd.pid ]; then kill -s SIGTERM > $(cat /var/run/distccd.pid); fi > > You could either create a shell function or alias to reduce typing. -- 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/
RE: error 1062 when starting distccd
You could try the following alternatives to "cygrunsrv": Start distccd - /usr/bin/distccd --daemon --nice 4 --log-file /var/log/distccd.log --pid-file /var/run/distccd.pid Stop distccd - if [ -f /var/run/distccd.pid ]; then kill -s SIGTERM $(cat /var/run/distccd.pid); fi You could either create a shell function or alias to reduce typing. > -Original Message- > From: Christian [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 22, 2004 9:51 AM > To: Gerrit P. Haase > Cc: Christian; cygwin > Subject: Re: error 1062 when starting distccd > > > Gerrit P. Haase schrieb: > > Hallo Christian, > > Hi Gerrit! > > > > > > >>I have read the docu and think, that i've installed the > distccd-service > >>in the right way. > > > > > >>When starting the service with "cygrunsrv.exe -S distccd", > the log says: > >>PID 672 : starting service `distccd' failed: execv: 0, No error. > > -- 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/
Re: error 1062 when starting distccd
Gerrit P. Haase schrieb: Hallo Christian, Hi Gerrit! I have read the docu and think, that i've installed the distccd-service in the right way. When starting the service with "cygrunsrv.exe -S distccd", the log says: PID 672 : starting service `distccd' failed: execv: 0, No error. What is in the Windows eventlog? Is there a special error log? 'Failed: no error' is not a very descriptive error message. That's all in the Windows eventlog, when the start fails.. :-/ When starting with "/etc/rc.d/init.d/distccd start" it says: PID 2588 : (dcc_setup_daemon_path) daemon's PATH is /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/system32/nls:/cygdrive/c/WINNT/system32/nls/ENGLISH:/cygdrive/c/gnupg: /cygdrive/c/Programme/NMapWin/bin:Z:.:/usr/X11R6/bin. PID 2588 : (dcc_listen_by_addr) listening on 0.0.0.0:3632. PID 2588 : (dcc_standalone_server) 1 CPU online on this server. PID 2588 : (dcc_standalone_server) allowing up to 3 active jobs. PID 2528 : (dcc_log_daemon_started) preforking daemon started (2.12 i686-pc-cygwin, built Dec 23 2003 22:30:33). I think, thats fine. In your previous mail you stated that you thought that it was not working, so does it work at all now? I checked it more and found this: nmap say port 3632 is open. i can see 4 processes in the windows-taskmanager. but the processes do nothing. my other machine(linux) running distccd is working fine for my slow laptop.. ;) Whats wrong when starting distccd with cygrunsrv? I cannot read your logfiles, what are the error messages in the log? In the Eventlog? How did you install it to run as service? I guess that it was not correct what you did, but I don't know unless you tell us what and how you did to install it. I wrote all i can find about distccd in my Windows logfiles. So i installed it: cygrunsrv.exe -I distccd -p /cygdrive/c/cygwin/bin/distccd.exe Gerrit Christian -- 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/
Re: error 1062 when starting distccd
Hallo Christian, [distcc as service fails] > I have read the docu and think, that i've installed the distccd-service > in the right way. > When starting the service with "cygrunsrv.exe -S distccd", the log says: > PID 672 : starting service `distccd' failed: execv: 0, No error. What is in the Windows eventlog? Is there a special error log? 'Failed: no error' is not a very descriptive error message. > When starting with "/etc/rc.d/init.d/distccd start" it says: > PID 2588 : (dcc_setup_daemon_path) daemon's PATH is > /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/system32/nls:/cygdrive/c/WINNT/system32/nls/ENGLISH:/cygdrive/c/gnupg: > /cygdrive/c/Programme/NMapWin/bin:Z:.:/usr/X11R6/bin. > PID 2588 : (dcc_listen_by_addr) listening on 0.0.0.0:3632. > PID 2588 : (dcc_standalone_server) 1 CPU online on this server. > PID 2588 : (dcc_standalone_server) allowing up to 3 active jobs. > PID 2528 : (dcc_log_daemon_started) preforking daemon started (2.12 > i686-pc-cygwin, built Dec 23 2003 22:30:33). > I think, thats fine. In your previous mail you stated that you thought that it was not working, so does it work at all now? > Whats wrong when starting distccd with cygrunsrv? I cannot read your logfiles, what are the error messages in the log? In the Eventlog? How did you install it to run as service? I guess that it was not correct what you did, but I don't know unless you tell us what and how you did to install it. Gerrit -- =^..^= -- 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/
Re: error 1062 when starting distccd
Gerrit P. Haase schrieb: Christian wrote: hi! $ /etc/rc.d/init.d/distccd start Starting distccd: [ OK ] it seems running: $ ps -a PIDPPIDPGID WINPID TTY UIDSTIME COMMAND 2628 12628 2628? 1000 13:37:52 /usr/bin/distccd 266826282628 2668? 1000 13:37:52 /usr/bin/distccd 180426282628 1804? 1000 13:37:53 /usr/bin/distccd but i think it doesn't work... so i stopped it und tried to start in another way: $ cygrunsrv -S distccd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: Der Dienst wurde nicht gestartet. HELP!!! Please read the docu about cygrunsrv how to use it to install a service correct. The look into the Windows eventlog, what is the error message? Then look in the distcc logfile, what are the error messages? You may specify some additional options to distcc, e.g. not to run as daemon in the background. Gerrit I have read the docu and think, that i've installed the distccd-service in the right way. When starting the service with "cygrunsrv.exe -S distccd", the log says: PID 672 : starting service `distccd' failed: execv: 0, No error. When starting with "/etc/rc.d/init.d/distccd start" it says: PID 2588 : (dcc_setup_daemon_path) daemon's PATH is /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/system32/nls:/cygdrive/c/WINNT/system32/nls/ENGLISH:/cygdrive/c/gnupg: /cygdrive/c/Programme/NMapWin/bin:Z:.:/usr/X11R6/bin. PID 2588 : (dcc_listen_by_addr) listening on 0.0.0.0:3632. PID 2588 : (dcc_standalone_server) 1 CPU online on this server. PID 2588 : (dcc_standalone_server) allowing up to 3 active jobs. PID 2528 : (dcc_log_daemon_started) preforking daemon started (2.12 i686-pc-cygwin, built Dec 23 2003 22:30:33). I think, thats fine. Whats wrong when starting distccd with cygrunsrv? -- 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/
Re: error 1062 when starting distccd
Christian wrote: > hi! > $ /etc/rc.d/init.d/distccd start > Starting distccd: [ OK ] > it seems running: > $ ps -a >PIDPPIDPGID WINPID TTY UIDSTIME COMMAND > 2628 12628 2628? 1000 13:37:52 /usr/bin/distccd > 266826282628 2668? 1000 13:37:52 /usr/bin/distccd > 180426282628 1804? 1000 13:37:53 /usr/bin/distccd > but i think it doesn't work... > so i stopped it und tried to start in another way: > $ cygrunsrv -S distccd > cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: > Der Dienst wurde nicht gestartet. > HELP!!! Please read the docu about cygrunsrv how to use it to install a service correct. The look into the Windows eventlog, what is the error message? Then look in the distcc logfile, what are the error messages? You may specify some additional options to distcc, e.g. not to run as daemon in the background. Gerrit -- =^..^= http://nyckelpiga.de/donate.html -- 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/
error 1062 when starting distccd
hi! $ /etc/rc.d/init.d/distccd start Starting distccd: [ OK ] it seems running: $ ps -a PIDPPIDPGID WINPID TTY UIDSTIME COMMAND 2628 12628 2628? 1000 13:37:52 /usr/bin/distccd 266826282628 2668? 1000 13:37:52 /usr/bin/distccd 180426282628 1804? 1000 13:37:53 /usr/bin/distccd but i think it doesn't work... so i stopped it und tried to start in another way: $ cygrunsrv -S distccd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: Der Dienst wurde nicht gestartet. HELP!!! -- 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/