-----BEGIN PGP SIGNED MESSAGE----- On May 1, 2011, at 3:47 AM, Pramod Pillai wrote:
On Solaris machine the legacy logging is done by SMF system-log. And there are many Solaris SMF which depends on system-log SMF.
Solaris SMF knows the concept of instances, i.e. you can configure multiple instances of an SMF object like system-log. What I did in my case I grabbed a copy of the default manifest of system-log and added another instance block right at the end of the default instance: <instance name='syslog-ng' enabled='false'> <exec_method type='method' name='start' exec='/usr/local/etc/svc/method/syslog-ng %m' timeout_seconds='600'> <method_context> <method_credential user='root' /> </method_context> </exec_method> <exec_method type='method' name='stop' exec='/usr/local/etc/svc/method/syslog-ng %m' timeout_seconds='60'> <method_context> <method_credential user='root' /> </method_context> </exec_method> <exec_method type='method' name='restart' exec='/usr/local/etc/svc/method/syslog-ng %m' timeout_seconds='60'> <method_context> <method_credential user='root' /> </method_context> </exec_method> <template> <common_name> <loctext xml:lang='C'> system log ng </loctext> </common_name> <documentation> <manpage title='syslog-ng' section='8' manpath='/usr/local/man' /> </documentation> </template> </instance> Once you delete the default manifest and import the modified manifest by using svccfg you will have two instances of system-log: $ svcs system-log STATE STIME FMRI disabled Nov_11 svc:/system/system-log:default online Nov_11 svc:/system/system-log:syslog-ng That will satisfy all the dependencies other services and milestones my have. - - Michael -----BEGIN PGP SIGNATURE----- Version: PGP Desktop 10.0.3 (Build 1) Charset: us-ascii wsBVAwUBTcAO/JbfnpCg64TVAQF1jwf/TZC1U3F/IciG78fljEUv+XYqDP2AVHrg BKW3jVfKGjzBmYbXFdjT9Edxoo+jDwvinkyAE3+hLoasOwYKc9h17ZIddbDIS5q4 2hKIHfaVMV2cD0urDTnCscFOiEp4prV0bCoGyQzo+Jv/p9e+AxSaAb6UBWgi/hDi n3RLbqcCdOClG3pHUWfI2641YR+iKGsvrXcRUbABzSX4Ag1umJirdPV6WV9mxAK6 cRnOMtdba+wBhyZAVl6bZvDwx52UffzWai4X5yxOsGX2jOGqA+j7ARXU0fdgnnXl x85Jz8vvw1v1jrPFKXJ3yb692Gyzly46VbKSEsIXJJLg7Vs+PMiv5Q== =xgWz -----END PGP SIGNATURE-----