On Friday 07 April 2006 15:17, [EMAIL PROTECTED] wrote:
> Hi!
>
> I'm using bacula-fd via inetd.  This is an example line in inetd.conf:
>
> bacula-fd stream tcp    nowait  root    /usr/local/sbin/bacula-fd bacula-fd
> -i -c /etc/opt/bacula/bacula-fd.conf
>
> As you can see, I'm using the option -i as required for bacula's work
> with inetd.  This works well in "normal" cases, when all things alright:
> The filedaemon is started for backup, it sends all data to storage daemon
> an terminates correctly.
>
> But, if I try to cancel a job using bconsole, the communication between
> director and filedaemon fails.  I found, that the director wants to
> establish another connection to port 9102 (I guess, to send the cancel
> command), and inetd then tries to start up a second process instance of
> the filedaemon.  This instance fails because it finds the pidfile of the
> first, running backup instance.
>
> The same thing works well if I run the filedaemon at front side.
>
> Is this the expected behaviour?  Or do I miss some option/directive.
> The system is Solaris 9 with its own inetd.  Or is this a general
> limitation of inetd?

This is a limitation of inetd, which passes the socket on STDIN.  I had 
forgotten about the inetd option and am a bit surprised that it works.

I would recommend that you simply run the FD as a daemon. It doesn't cost much 
when it is waiting; is the way 99.999% of the users run it; will avoid all 
the kinds of problems you are seeing; and if I were doing everything over, I 
would never implement the inetd option ...


-- 
Best regards,

Kern

  (">
  /\
  V_V


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to