After playing around with syslog-ng on Solaris 10 today, here are some notes:
* As mentioned from Kenneth G, libol / syslog-ng should compile fine on Solaris 10, just make
sure --enable-full-dynamic" in your configure for syslog-ng.
* You may also need to update your LD_LIBRARY_PATH and PATH (/usr/sfw & /opt/sfw ? )
* Service Management Facility ("svcs" "svcadm" "svccfg" commands)
You can choose to run syslog-ng via the traditional /etc/init.d method on solaris 10 and then wrap that start
and stop script with the solaris 10's smf facility, or the other option is to do everything via the SMF facility.
I've attached two files to do the later.
The example files assume your syslog-ng.conf is ln /etc/syslog-ng/ -> /usr/local/etc/syslog-ng/
and the binary is /usr/local/sbin/syslog-ng:
1) Compile and install libol, syslog-ng.
2) mkdir /usr/local/etc/syslog-ng; ln -s /usr/local/etc/syslog-ng /etc/syslog-ng
3) copy your syslog-ng.conf to /etc/syslog-ng/
4) cp svc.method.syslog-ng /lib/svc/method/syslog-ng
5) cp svc.manifest.syslog-ng.xml /var/svc/manifest/system/syslog-ng.xml
6) `svccfg import /var/svc/manifest/system/syslog-ng.xml`
Then to switch from standard syslog to syslog-ng:
1) svcadm disable system-log
2) svcadm enable syslog-ng
To revert back to solaris 10's default syslog, and have it running on reboot:
1) `svcadm disable syslog-ng`
2) `svccfg delete syslog-ng`
3) `svcadm enable system-log`
---------- Forwarded message ----------
From: kenneth.gullberg@foreningssparbanken.se <
kenneth.gullberg@foreningssparbanken.se>
Date: May 26, 2005 5:11 AM
Subject: SV: [syslog-ng] syslog-ng 1.6.8 has been released
To: syslog-ng@lists.balabit.hu
Hi,
Here is a small suggestion for the INSTALL file in the next release for unexperienced admin's:
Solaris 10
----------
For successful compilation on Solaris 10 you need to use --enable-full-dynamic when you run configure.
// Kenneth