Nice Jim,
I believe the rc2 script is a good choice for upgrading during boot!
I can easily place it during pkg install, and let it disable the unwanted 
service,
online the new one and then self destroy the script.
----------------------------------------------------------------------------------
Da: Jim Klimov
A: [email protected] Gabriele Bulfon
Data: 5 aprile 2014 17.45.01 CEST
Oggetto: Re: [discuss] managing alternative services during pkg update
5 ?????? 2014 ?. 14:13:57 CEST, Gabriele Bulfon
?????:
Hi,
let's say I have delivered lxdm as the main graphical login service
before, through a specific lxdm service,
defaulting to active state.
Now I want to change this, delivering lightdm, through his specific
lightdm service.
Obviously updating from ips there would be a clash of two login
managers trying to start.
I'd like the new one, when installed, to force lxdm service state to
off on reboot, and have lightdm service
to be active on reboot.
Actually I don't want pkg to stop/start services during install, but
just switch their state on next reboot.
How can I achieve this through either pkg manifest or svc files?
Gabriele.
-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed:
https://www.listbox.com/member/archive/rss/182180/22642773-76f3f1fc
Modify Your Subscription:
https://www.listbox.com/member/?&id;secret=22642773-3cb00b08
Powered by Listbox: http://www.listbox.com
For one, you can have different dependencies in smf - including exclusion (so 
one or another may be enabled but not both), such as network/physical default 
vs. nwam.
For enabling after boot/install, you can select and edit an alternate smf 
repository with svccfg, e.g. to import a manifest for the service into an 
alternate BE which will come into force after reboot. For an example see my 
notes on split rootfs setup, where one can embed the alternate zfs-root 
mounting service right during installation.
For example, you might add a service whose job would be to disable one dm, 
enable another, and self-destruct. Probably, an early (rc2?) init-script would 
be handier at this than an smf service ;)
--
Typos courtesy of K-9 Mail on my Samsung Android



-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to