[geeks] [rescue] SMF confuseth me still

Phil Stracchino phils at caerllewys.net
Sat Sep 23 14:16:09 CDT 2017


Found PART of the problem.

The author of the SMF manifest named the services bacula/fd, bacula/sd,
bacula/dir.  This was apparently silently failing to import.  When I
renamed the services to bacula-fd, bacula-sd, bacula-dir, suddenly I
could re-import the service.

It still doesn't autostart at boot:

asgard:root:/var/svc/log:10 # cat *bacula*
[ Sep 23 14:35:14 Disabled. ]
[ Sep 23 14:35:15 Rereading configuration. ]
[ Sep 23 14:35:14 Enabled. ]
[ Sep 23 14:35:14 Executing start method ("/opt/bacula/sbin/bacula-fd -v
-c /opt/bacula/etc/bacula-fd.conf"). ]
[ Sep 23 14:35:14 Method "start" exited with status 0. ]
[ Sep 23 14:35:15 Rereading configuration. ]
[ Sep 23 14:35:15 No 'refresh' method defined.  Treating as :true. ]
[ Sep 23 14:35:14 Enabled. ]
[ Sep 23 14:35:14 Executing start method ("/opt/bacula/sbin/bacula-sd -v
-c /opt/bacula/etc/bacula-sd.conf"). ]
[ Sep 23 14:35:14 Method "start" exited with status 0. ]
[ Sep 23 14:35:15 Rereading configuration. ]
[ Sep 23 14:35:15 No 'refresh' method defined.  Treating as :true. ]

...and can't be manually started until re-imported by restarting
manifest-import, but starts without any problem *when* re-imported.


My best guess is that I may be missing some dependency that isn't
actually available until after its turn to start comes up, but I can't
figure out what.  The service log isn't helpful in determining what's
missing.  There's a file dependency on the config file, so it shouldn't
be *able* to try to start until that filesystem (/opt/bacula) is
mounted.  And a dependency that isn't available at the time SMF tries to
start the service, but *is* available by the time I try to start it
manually, doesn't explain why I can't enable the services manually (even
though I can manually start and stop the processes), but they start
automatically once re-imported.


-- 
  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