Dean Stanton wrote:
> LSARC asked me to create an SMF service to start my server
> on Solaris 10, though we use an init.d script on Solaris 8 & 9.
> My service depends on N1 Grid Engine having already started.
> N1GE's queue master is started by
>       /etc/rc2.d/S95sgemaster -> /etc/init.d/sgemaster
> -- it has not been converted to use SMF.
>
> How do I depend on that script having been started,
> rather than merely that the multi-user milestone has been achieved?
>
> When sgemaster starts, it leaves its pid in
> /gridware/sge/default/spool/qmaster/qmaster.pid
> (but of course there could be an old PID there from a prior boot).
>
> _______________________________________________
> smf-discuss mailing list
> smf-discuss at opensolaris.org
>   
I'm not sure how to establish dependency on a running rc script. 
However, your service's start-up method can do a pgrep -x to figure out 
whether sgemaster is running before starting the service.

my 2cent,
-tony

Reply via email to