Nicolas Williams wrote:
> On Mon, Jun 15, 2009 at 02:38:01PM -0700, Tony Nguyen wrote:
>   
>> Darren Reed wrote:
>>     
>>> http://cr.opensolaris.org/~darrenr/6271923-20090615/
>>>       
>> Isn't it possible to have /etc/inet/dhcpsvc.conf on a system where dhcp 
>> server is disabled? If so, the existing logic in checkinstall doesn't 
>> seem sufficient.
>>     
>
> I think the checkinstall fix is correct: if the manifest doesn't exist
> -> the pkg hadn't been installed before.  Oh, maybe not!  Since LU does
> pkgrm them pkgadd.  I see the point.  What needs to be checked is
> whether the service exists, and that's... not something that can be done
> in checkinstall.
>   

Or the admin decides to run DHCP server outside of SMF, dhcp-server 
service is deleted and its manifest is removed from the system(similar 
to pre-S10 case). In this case, we really want to find  out whether dhcp 
server was enabled. Is this even possible? dhcpsvc.conf(4) suggests  
DAEMON_ENABLED though I'm not positive that's the right option.

I maybe splitting hair here as Darren's logic is good for most use cases.

cheers,
tony

Reply via email to