/usr/share/doc/Cygwin/apache-1.3.29-1.READMEに、
$ cygrunsrv -I httpd -d "CYGWIN httpd (apache)" -p /usr/sbin/httpd.exe -a "-F"
とか、
BEWARE: If you have installed 1.3.x-y from the cygwin net distribution
prior to version 1.3.29-y and are using the "-k" option that is passed
to cygrunsrv to leave the main parent process bound to the shell and not
to detach from the shell, the new option is now "-F". This change is due
to the fact that the "-k" switch was a cygwin specific patch and the "-F"
switch is now the "official switch" for it.
と書かれています。
ですので、cygrunsrvの引数に -a -k の代わりに -a -F を渡せばできるかもしれません。
手元の以下の環境では:
$ cygcheck -c cygwin apache
Cygwin Package Information
Package Version Status
apache 1.3.29-2 OK
cygwin 1.5.7-1 OK
cygrunsrvに次の引数を渡して、apacheのサービスでの起動に成功しています。
$ cygrunsrv -I httpd -d "Cygwin httpd" -p /usr/sbin/httpd -a -F
|