* Niklas Jonsson <niklas.jonsson at hp.com> [2007-07-03 07:34]:
> Hi all,
> 
> I got a minor problem that I can not solve but I think that you might be able 
> to help me,
> 
> I have a SMF script that are run in multi-user, this script does some updates 
> on the computer and sometimes it have to reboot the machine for the settings 
> to take place.
> 
> The problem is that this script is run in milestone/multi-user, and sometimes 
> it takes a while for this script to go thru, and when it is done, the machine 
> has reached milestone/multi-user-server and I do not want that.
> 
> So how do I make the SMF wait for this script to be done before going on with 
> the rest of the startup? Like it used to behave in earlier version of 
> Solaris, that every script is run one after another.

  Add a <dependent> entity to your manifest, making multi-user-server
  (and any other relevant services) await your service coming online.

  (You can recursively grep in /var/svc/manifest for example manifests
  using the dependent entity.)

  - Stephen

-- 
sch at sun.com  http://blogs.sun.com/sch/

Reply via email to