Gary Mills wrote:
> After an upgrade from OS 0906 to snv_127, I attempted to
> start pkg/server, after setting `pkg/port=10000'.  It went
> into maintenance mode, with this information in the log:
> 
> [ Nov 15 08:06:37 Executing start method ("/lib/svc/method/svc-pkg-depot 
> start"). ]
> Dropping net_privaddr privilege.
> ppriv -s A=basic,-file_link_any,-proc_info,-proc_session,net_privaddr -e 
> /usr/lib/pkg.depotd -d /var/pkg/repo -p 10000 -s 10 -t 60 
> --content-root=/usr/share/lib/pkg --log-access=none --log-errors=stderr 
> --ssl-cert-file=none --ssl-dialog=smf:svc:/application/pkg/server:default 
> --ssl-key-file=none
> pkg.depotd: repository configuration error: publisher.prefix is required.
> Please use the --set-property option to provide a value, or update the 
> cfg_cache file for the repository to correct this.
> [ Nov 15 08:06:38 Stopping because all processes in service exited. ]
> [ Nov 15 08:06:38 Restarting too quickly, changing state to maintenance. ]
> 
> There's no SMF property available to set the `--set-property' option.
> The cfg_cache file hadn't been created yet by pkg/server startup.
> My workaround was to add that option to the method script.
> 
> I don't suppose that it would be worthwhile to use SMF properties to
> set all of the initial repository options.  As it stands now, none of them
> can be set through SMF properties.  Either the required ones need to be
> set through SMF, or a model cfg_cache should be made available so
> it can be copied and edited.

It is intentional that they are not currently SMF properties.  The 
properties that are used and the interface is in sufficient flux that it 
was deemed not the right time yet to do this.

However, the properties are documented for the moment in the pkg.depotd 
man page, and you can easily edit the cfg_cache file or manually start 
the depot server with the necessary options to set the configuration.

There should also be an administrative tool soon to change these.

Cheers,
-- 
Shawn Walker

Reply via email to