SUMMARY: SMF and legacy scripts
2007-12-25 5:59:00
Many thanks to francisco, Bernd Schemmer, Luc I. Suryo, and Darren Dunham.
My issue was caused by the fact that by default we disable inetd on all
our servers. I had disabled inetd with "svcadm disable
svc:/network/inetd:default", and since inetd is a dependency of he
multi-user (rc2) milestone, which is required for multi-user-server
(rc3) milestone, no legacy scripts were ran as the server never reached
multi-user or multi-user-server. I was able to determine what was going
on w/ the "svcs -x", "svcs -xv FMRI", and "svcs -l". I re-enabled inetd
and then went through and disabled each service I don't use. I used the
"svcs -xv FMRI" and "svcs -D FMRI" to determine the dependencies and
"inetadm -d FMRI" to disable the service.
Thanks again to all that replied!
Drew
Andrew Hall wrote:
> Hello,
>
> I have a legacy SMF script issue I'm hoping to get some assistance with.
> As I understand it any script in /etc/rc*.d thats executable will be
> executed by the corresponding /sbin/rc* script. These scripts start
> each file in that directory with /lib/svc/bin/lsvcrun.
>
> My legacy script appears to not being ran during boot up. The script
> works and has no syntax issues. I have tried using a symlink in
> /etc/rc3.d, copying the script directly into /etc/rc3.d, it's executable
> and owned by root.
>
> I am unable to debug whats going on as
> /var/svc/log/milestone-multi-user-server:default.log is 0 bytes and is
> not being updated at all.
>
> Do I have to register the script w/ SMF somehow? Any idea why my
> milestone files are not being written to?
>
> Thanks,
>
> Drew
> _______________________________________________
> codeprof mailing list
> codeprof at codeprof.com
> http://www.codeprof.com/execute/ask/?codeinfoid=39980
Comments
Got something to say?
You must be logged in to post a comment.

