Re: [zones-discuss] How to enable a service of a zone that is not running...

2009-09-29 Thread Brad Diggs
Thanks to everyone that responded! Of the options presented, I believe that the best option that will have the longest supportability across Solaris and OpenSolaris versions over time is... ...create an rc script in the zone with the svcadm enable command which removes itself after

Re: [zones-discuss] How to enable a service of a zone that is not running...

2009-09-28 Thread Bernd Schemmer
AFAIK the upgrade script is not an stable interface. IMHO it's better to create an rc script in the zone with the svcadm enable command which removes itself after executing the svcadm command. regards Bernd Mike Gerdts wrote: On Sun, Sep 27, 2009 at 10:50 AM, Brad Diggs

Re: [zones-discuss] How to enable a service of a zone that is not running...

2009-09-28 Thread Renaud Manus
It should be possible to do it since the integration of PSARC 2008/015 svccfg refresh subcommand in nevada. eg. # svccfg svc: repository zonepath/etc/svc/repository.db svc: select instance_FMRI svc: setprop general/enabled = true svc: refresh svc: exit I've never tried it though and I'm not

Re: [zones-discuss] How to enable a service of a zone that is not running...

2009-09-27 Thread Trevor Pretty
Do you mean you mean from the global zone like this? zlogin $ZONE_NAME svcadm enable svc:/system/foo Brad Diggs wrote: I would like to svcadm enable a service of a non-global zone who's state is not 'running'. Is that possible? If so, how? Thanks in advance, Brad

Re: [zones-discuss] How to enable a service of a zone that is not running...

2009-09-27 Thread Brad Diggs
Not exactly. That will work if the zone is running. However, it will not work for a non-running zone because because it requires an execution environment to run within. Imagine if you will that we created a zone and then shut it down and halted it. Now, while the zone is down how can I

Re: [zones-discuss] How to enable a service of a zone that is not running...

2009-09-27 Thread Mike Gerdts
On Sun, Sep 27, 2009 at 10:50 AM, Brad Diggs bradley.di...@sun.com wrote: I would like to svcadm enable a service of a non-global zone who's state is not 'running'. Is that possible?  If so, how? Thanks in advance, Brad Brad Diggs Principal Field Technologist You can cause it to become