? 2008?10?08? 01:47, Jordan Brown ??: > The best answer is to deliver the manifest in a package, and set the > file class for the manifest to "manifest". System-supplied class action > scripts will then do the right things on install and uninstall.
Hi Jordon, Yes I'm putting these file in a package, so such "svccfg delete" and "svccfg import" operations should be done as part of "pkgrm" and "pkgadd". Will you please provide more details about "file class" and "system-supplied class action scripts"? Any examples? Thanks. -- Huafeng > > Huafeng Lu wrote: >> Renaud Manus ??: >>> did you run "svccfg delete <fmri>" before the reboot ? >> >> >> Thanks Renaud, and thanks all that helped (Petr and Ganesh). The >> method works well. >> >> -- >> Huafeng >> >> >>> -- Renaud >>> >>> Huafeng Lu wrote: >>>> Hi, >>>> >>>> I'm adding a SMF service to the system by adding two files: >>>> /lib/svc/method/xyz >>>> /var/svc/manifest/network/xyz.xml >>>> >>>> The adding operation succeeded. But after I removed these two files and >>>> rebooted the machine, "svcs -a" still displays the "xyz" service. Seems >>>> the information is stored in some place. How do I remove this SMF >>>> service from the system completely? Thanks. >>>> >>>> -- >>>> Huafeng >>>> _______________________________________________ >>>> smf-discuss mailing list >>>> smf-discuss at opensolaris.org >> >> _______________________________________________ >> smf-discuss mailing list >> smf-discuss at opensolaris.org >