Download Cygwin User's Guide

Transcript
Chapter 3. Using Cygwin
If you don’t set CYGWIN in the system environment, but you’re running other Cygwin services, these
services need to get that CYGWIN value by setting the environment using the appropriate cygrunsrv
option ’-e’ when installing the service. Example installing a service ’foo’:
cygrunsrv -I foo -p /usr/sbin/foo -e "CYGWIN=server"
3.6.5. The Cygserver configuration file
Cygserver has many options, which allow to customize the server to your needs. Customization is
accomplished by editing the configuration file, which is by default /etc/cygserver.conf. This file is read
only once on startup of Cygserver. There’s no option to re-read the file on runtime by, say, sending a
signal to Cygserver.
The configuration file determines how Cygserver operates. There are options which set the number of
threads running in parallel, options for setting how and what to log and options to set various maximum
values for the IPC services.
The default configuration file delivered with Cygserver is installed to /etc/defaults/etc. The
/usr/bin/cygserver-config script copies it to /etc, giving you the option to overwrite an already existing
file or to leave it alone. Therefore, the /etc file is safe to be changed by you, since it will not be
overwritten by a later update installation.
The default configuration file contains many comments which describe everything needed to understand
the settings. A comment at the start of the file describes the syntax rules for the file. The default options
are shown in the file but are commented out.
It is generally a good idea to uncomment only options which you intend to change from the default
values. Since reading the options file on Cygserver startup doesn’t take much time, it’s also considered
good practice to keep all other comments in the file. This keeps you from searching for clues in other
sources.
3.7. Cygwin Utilities
Cygwin comes with a number of command-line utilities that are used to manage the UNIX emulation
portion of the Cygwin environment. While many of these reflect their UNIX counterparts, each was
written specifically for Cygwin. You may use the long or short option names interchangeably; for
45