So I changed this inetd service from:

platypus# svccfg -s svc:/network/uconnd/tcp:default
svc:/network/uconnd/tcp:default> listprop
general                    framework
general/enabled            boolean  true
restarter                  framework    NONPERSISTENT
restarter/auxiliary_state  astring  none
restarter/next_state       astring  none
restarter/state            astring  online
restarter/state_timestamp  time     1161367233.315532000
restarter/contract         count    131
inetd_state                framework    NONPERSISTENT
inetd_state/cur_state      integer  1
inetd_state/next_state     integer  13
inetd_state/start_pids     integer  1350

To This:

platypus# cat /etc/project
workproj1:100::::process.max-file-descriptor=(basic,512,deny)
...
platypus# svccfg -s svc:/network/uconnd/tcp:default
svc:/network/uconnd/tcp:default> listprop
general                    framework
general/enabled            boolean  true
start                      framework
start/project              astring  workproj1
restarter                  framework    NONPERSISTENT
restarter/auxiliary_state  astring  none
restarter/next_state       astring  none
restarter/state            astring  online
restarter/state_timestamp  time     1161367233.315532000
restarter/contract         count    131
inetd_state                framework    NONPERSISTENT
inetd_state/cur_state      integer  1
inetd_state/next_state     integer  13
inetd_state/start_pids     integer  1350

And got this:

platypus# pfiles 1350|head
1350:   /usr/us/bin/uconnd
  Current rlimit: 256 file descriptors

Tom

-----Original Message-----
From: Darren.Moffat at Sun.COM [mailto:darren.mof...@sun.com] 
Sent: Friday, October 20, 2006 11:13 AM
To: linda kateley
Cc: smf-discuss at opensolaris.org
Subject: Re: [smf-discuss] rctl per service


linda kateley wrote:
> Is there some way in a manifest or some other way to pin a service to
> a
> project or set rctl values in a manifest?

See the project and resource_pool values defined in smf_method(5).

You specify that in the service manifest.

You can set this in the repository using svccfg to create the 
start/project property for the service.  For example if you have a 
project called 'web' and you want to put the Apache server into it.

$ svccfg -s apache2 setprop start/project = astring: "web"

-- 
Darren J Moffat


Reply via email to