This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.5.19: cygrunsrv problem running Apache under user nobody


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@RENOG11-WIN01 ~/docs
$ cygrunsrv -R httpd

greno@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@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@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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]