I am trying to change default log location ( var/svc/logs/) of each and every SMF registered processes and append to particular file (/opt/smf.log).
Asked
Active
Viewed 681 times
3
-
@Banti are you referring to this Service Management Facility ? SMF is an ambiguous acronym, which also means Simple Machines Forum. – xenoterracide Mar 01 '11 at 10:17
-
@xenoterracide Actually i had posted this question in solaris so, SMF should be considered as Service management facility :) – Mar 01 '11 at 11:26
-
@Gyan answers are not comments ;) . I migrated it. – xenoterracide Mar 01 '11 at 14:18
1 Answers
2
That file path appears to be compiled into svc.startd:
myhostname# strings /lib/svc/bin/svc.startd |grep '/var/svc/log'
/var/svc/log/
/var/svc/log/
/var/svc/log/
/var/svc/log/
I suppose you could try changing the location of the directory to somewhere else, and make /var/svc/log a symlink to the new location, but I don't believe it's possible to make the services all log to one file -- that's just not how SMF was designed to work. And since svc.startd starts early in the boot process, before /var is even mounted read-write, linking /var/svc/log to some other -- possibly even unmounted -- partition may cause trouble.
Lars Rohrbach
- 5,393