X-Spam-Check-By: sourceware.org Message-ID: <20060324090025.62875.qmail@web31811.mail.mud.yahoo.com> Date: Fri, 24 Mar 2006 01:00:25 -0800 (PST) From: Gerry Reno Subject: 1.5.19: cygrunsrv problem running Apache under user nobody To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I am able to add the user 'nobody' and assign it to group 'Users' and then set local policy in windows so that 'nobody' can 'logon as a service'. I was expecting that I could define a service to start Apache and then use 'net start/stop' to control it. Well, I can define the service with cygrunsrv but when I use net start it is reporting that the service is not started, but, it does actually start. Another problem is that net stop will not stop the service. Here's a command sequence: $ ps -efl UID PID PPID TTY STIME COMMAND greno 3404 1 con 22:46:08 /usr/bin/bash greno 1084 3404 con 03:41:26 /usr/bin/ps greno AT RENOG11-WIN01 ~/docs $ cygrunsrv -R httpd greno AT RENOG11-WIN01 ~/docs $ cygrunsrv -I httpd -u nobody -p /usr/sbin/httpd -a "-DNO_DETACH" -d "CYGWIN Apache" -e "CYGWIN=server" --shutdown Enter password of user `RENOG11-WIN01\nobody': Reenter, please: greno AT RENOG11-WIN01 ~/docs $ net start httpd The CYGWIN Apache service is starting. The CYGWIN Apache service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. greno AT RENOG11-WIN01 ~/docs $ ps -efl UID PID PPID TTY STIME COMMAND greno 3404 1 con 22:46:08 /usr/bin/bash nobody 3524 1 ? 03:42:13 /usr/sbin/httpd nobody 1420 3524 ? 03:42:14 /usr/sbin/httpd nobody 1660 3524 ? 03:42:14 /usr/sbin/httpd nobody 2148 3524 ? 03:42:14 /usr/sbin/httpd nobody 1168 3524 ? 03:42:14 /usr/sbin/httpd nobody 2828 3524 ? 03:42:14 /usr/sbin/httpd nobody 2508 3524 ? 03:42:27 /usr/sbin/httpd greno 2624 3404 con 03:42:31 /usr/bin/ps As you can see httpd did actually start and a check with the browser verfies this. I'm stumped at why net start/stop are not behaving properly. When I go into Services in Windows Control Panel the httpd service is there but shows not started. Any ideas? Gerry Reno mailto: grenoml at@ yahoo dot. com (if mail bounces please retry later - spam rapidly fills up mailbox) -- 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/