Cygserverを有効にする
cygwinにapacheをインストールして起動しようとしたらエラーになった。
$ apachectl2 start Bad System Call $HTTPD -k $ARGV
cygserverが必要らしいのでsetup.exeからcygrunsrvを追加、
CYGWIN環境変数を値serverとして追加、cygserver-configを実行。
$ /usr/bin/cygserver-config Overwrite existing /etc/cygserver.conf file? (yes/no) yes Generating /etc/cygserver.conf file Warning: The following function requires administrator privileges! Do you want to install cygserver as service? (Say "no" if it's already installed as service) (yes/no) yes The service has been installed under LocalSystem account. To start it, call `net start cygserver' or `cygrunsrv -S cygserver'. Further configuration options are available by editing the configuration file /etc/cygserver.conf. Please read the inline information in that file carefully. The best option for the start is to just leave it alone. Basic Cygserver configuration finished. Have fun!
cygserverを起動してからapacheを起動したらうまく行ったっぽい。
$ net start cygserver