Cygwin + syslog-ng
Until I can get a real workstation at work and get off this winblows, Cygwin is my friend. I am working on some OO programming with PERL and really need to be able to log syslog messages locally.
After installing syslog-ng, I couldn't figure out how to run it, till I stumbled on a page that mentioned the syslogd-config command.
Initially I had some problems because the /etc/passwd and /etc/group files were not world readable (don't know if that is a side effect of the Legato restore of my laptop or just the default behavior) however a quick "chmod a+r /etc/passwd /etc/group" seemed to help.
running syslogd-config yielded this output:
I discovered the hard way that it is nice to follow this up by disabling the auto start in the Microsoft services area. Otherwise cygwin will start syslog by default and this might cause strange failures when upgrading.
After installing syslog-ng, I couldn't figure out how to run it, till I stumbled on a page that mentioned the syslogd-config command.
Initially I had some problems because the /etc/passwd and /etc/group files were not world readable (don't know if that is a side effect of the Legato restore of my laptop or just the default behavior) however a quick "chmod a+r /etc/passwd /etc/group" seemed to help.
running syslogd-config yielded this output:
> syslogd-ng-config
Creating default /etc/syslog-ng.conf file
Warning: The syslogd service is already installed. You can not
run both, syslogd and syslog-ng in parallel.
Do you want to deinstall the syslogd service in favor of syslog-ng? (yes/no) yes
Warning: The following function requires administrator privileges!
Do you want to install syslog-ng as service?
(Say "no" if it's already installed as service) (yes/no) yes
The service has been installed under LocalSystem account.
To start the service, call `net start syslog-ng' or `cygrunsrv -S syslog-ng'.
Check /etc/syslog-ng.conf first, if it suits your needs.
Configuration finished. Have fun!
I discovered the hard way that it is nice to follow this up by disabling the auto start in the Microsoft services area. Otherwise cygwin will start syslog by default and this might cause strange failures when upgrading.
Comments
Post a Comment