* mark scheufele <mark.scheufele at diasemi.com> [2006-04-05 09:31]: > Hi, > > I've found a smf manifest for samba on the net and added the following > method_context section. > > <method_context working_directory=':default' project=':samba'> > </method_context> > > After doing that I imported the manifest which worked just fine. The command > svccfg listprop shows the following entries for method_context: > > method_context framework > method_context/project astring :samba > method_context/resource_pool astring :default > method_context/working_directory astring :default > > To me this looks ok. But when I start the samba service with svcadm > enable the processes aren't assigned to the correct project. Yet > starting samba with the command "newtask -p samba > /lib/svc/method/samba start" assigns the processes to the samba > project. I am using solaris 10 update 1. > > Any help is appreciated.
Your method_context/project value is ":samba"; you want "samba". (That is, you don't want the leading colon.) So # svccfg -s fmri/for/samba:instance > setprop method_context/project = "samba" > ^D # svcadm refresh fmri/for/samba:instance # svcadm restart fmri/for/samba:instance (The colon-prefixed values are smf(5) keywords, at least in the framework property groups.) - Stephen -- Stephen Hahn, PhD Solaris Kernel Development, Sun Microsystems stephen.hahn at sun.com http://blogs.sun.com/sch/