Starting syslogd as a service

By default, the syslogd(1) daemon is started by the init(1) utility shortly after the Interix subsystem starts.

Instead of running syslogd as a daemon, you can use the service(1) utility to install and run syslogd as a Windows service by typing the following command at the Interix shell prompt:

service install -u administrator -p password /bin/syslogd -s

This command includes options for the administrator user account and a password. If you do not supply the -p option and password, you will be prompted for the password. Once the service is installed, start it by typing:

service start syslogd

By default, the syslogd service is set to start in manual mode, requiring you to start it each time Windows starts after you have installed the syslogd service. You can use the service utility to set it to run automatically when Windows starts. From the command line, type service update -s auto to switch to automatic mode.

You can also use the service control panel to change the mode to automatic.

Before starting the syslogd service, you should edit /etc/syslog.conf to ensure that the configuration parameters are set correctly. Remove the comments on the appropriate entries and check the log file names to ensure that they are correct.