[geeks] [rescue] SMF confuseth me still

Phil Stracchino phils at caerllewys.net
Mon Oct 30 23:39:25 CDT 2017


On 09/26/17 23:14, Phil Stracchino wrote:
> On 09/26/17 10:53, John Core wrote:
>> jumpsvr01-de:log: svccfg svc:> select svc:/system/svc/restarter:default
>> svc:/system/svc/restarter:default> addpg options application
>> svc:/system/svc/restarter:default> setprop options/logging = astring: debug
>> svc:/system/svc/restarter:default> quit
>> then init 6
>>
>> just wrote it up on my blog
>> http://dracko.org/index.php?s=page&n=show_post&id=769
> 
> 
> Thanks, I'll try that tomorrow and see if it sheds any light.

OK, I finally got the opportunity to test this, and here's what I see:

[...]
Oct 30 23:17:48/9: require_all(svc:/network/bacula-sd:default):
svc:/network/bacula-sd:default>network is unsatisfied.
Oct 30 23:17:48/9: require_any(svc:/network/bacula-fd:default>network):
svc:/network/service is unsatisfied.
Oct 30 23:17:48/9: require_all(svc:/network/bacula-fd:default):
svc:/network/bacula-fd:default>network is unsatisfied.
Oct 30 23:17:48/9: require_any(svc:/network/bacula-sd:default>network):
svc:/network/service is unsatisfied.
Oct 30 23:17:48/9: require_all(svc:/network/bacula-sd:default):
svc:/network/bacula-sd:default>network is unsatisfied.
Oct 30 23:17:48/9:
require_all(svc:/network/bacula-fd:default>config-file):
file:///opt/bacula/etc/bacula-fd.conf is unsatisfiable.
Oct 30 23:17:48/9: require_all(svc:/network/bacula-fd:default):
svc:/network/bacula-fd:default>config-file is unsatisfied.
Oct 30 23:17:48/9:
require_all(svc:/network/bacula-sd:default>config-file):
file:///opt/bacula/etc/bacula-sd.conf is unsatisfiable.
Oct 30 23:17:48/9: require_all(svc:/network/bacula-sd:default):
svc:/network/bacula-sd:default>config-file is unsatisfied.
Oct 30 23:17:49/9:
require_all(svc:/network/bacula-fd:default>config-file):
file:///opt/bacula/etc/bacula-fd.conf is unsatisfiable.
Oct 30 23:17:49/9: require_all(svc:/network/bacula-fd:default):
svc:/network/bacula-fd:default>config-file is unsatisfied.
Oct 30 23:17:49/9:
require_all(svc:/network/bacula-sd:default>config-file):
file:///opt/bacula/etc/bacula-sd.conf is unsatisfiable.
Oct 30 23:17:49/9: require_all(svc:/network/bacula-sd:default):
svc:/network/bacula-sd:default>config-file is unsatisfied.


This looks to me like svc is trying to start Bacula too soon, before
/opt/bacula has been mounted.  And I can't start them manually with
svcadm after boot - again, *UNTIL* I restart manfest-import.  And then
suddenly, boom, they autostart.

Something is giving SMF amnesia about the correct service definition for
Bacula.



-- 
  Phil Stracchino
  Babylon Communications
  phils at caerllewys.net
  phil at co.ordinate.org
  Landline: +1.603.293.8485
  Mobile:   +1.603.998.6958


More information about the geeks mailing list