On May 15, 2006 2:29:26 PM -0500 Nicolas Williams <Nicolas.Williams at sun.com> 
wrote:
> On Mon, May 15, 2006 at 11:34:24AM -0700, Frank Cusack wrote:
>> Hi
>>
>> I have a service that doesn't stay enabled.
>>
>> I compiled my own BIND named.  I used the Sun manifest, and just changed
>> the path to run my local copy.  (I deleted and imported the manifest after
>> the change.)  When my named dies, either via pkill or svcadm disable,

Of course if I use 'svcadm disable' it gets disabled.  What I meant was
if I reboot.  Which runs the :kill method.

>> smf thinks it got disabled and doesn't restart it.  When the Sun named
>> dies, the same way, smf does restart it.  Both processes seem to exit
>> the same way.
>>
>> Take a look at
>> <http://groups.google.com/group/comp.unix.solaris/browse_frm/thread/a0063f03e5b0d0b0/72cde26ce2b
>> 9ed1c#72cde26ce2b9ed1c> for a longer rundown of the problem.
>
> svcs -xv output?

Nothing more than what is indicated in the post above.

[root at test:~]# svcadm enable dns/server
[root at test:~]# svcs -xv dns/server
svc:/network/dns/server:default (?)
 State: online since Mon May 15 12:48:19 2006
   See: man -M /usr/man -s 1M named
   See: /var/svc/log/network-dns-server:default.log
Impact: None.
[root at test:~]# pkill named
[root at test:~]# svcs -xv dns/server
svc:/network/dns/server:default (?)
 State: disabled since Mon May 15 12:48:32 2006
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/man -s 1M named
   See: /var/svc/log/network-dns-server:default.log
Impact: This service is not running.

Note that with Sun's named, svcs will show it is running after the pkill.
Because the restarter restarts it.  The relevant svc log output can be
found in the post linked to above.

> Did you svcadm enable -t?  Or just svcadm enable?

Just enable.  I'm not *that* bad. :)

-frank

Reply via email to