X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fdird%2Ffd_cmds.c;h=785d6794b8e1c16fd108aa06b01ae8cb15bbe219;hb=b8224aab234012c2d127b84eceb160e99dd4a14d;hp=ec10a5cdb707e84ec8eabcdd97f0f76e9fe4e15c;hpb=413c2acdab1935b4b617477732ec03ca7a0fd784;p=bacula%2Fbacula diff --git a/bacula/src/dird/fd_cmds.c b/bacula/src/dird/fd_cmds.c index ec10a5cdb7..785d6794b8 100644 --- a/bacula/src/dird/fd_cmds.c +++ b/bacula/src/dird/fd_cmds.c @@ -505,6 +505,9 @@ int send_runscript_with_old_proto(JCR *jcr, int when, POOLMEM *msg) /* * Send RunScripts to File daemon + * 1) We send all runscript to FD, they can be executed Before, After, or twice + * 2) Then, we send a "RunBeforeNow" command to the FD to tell him to do the + * first run_script() call. (ie ClientRunBeforeJob) */ int send_runscripts_commands(JCR *jcr) { @@ -552,15 +555,16 @@ int send_runscripts_commands(JCR *jcr) return 0; } } - /* + /* TODO : we have to play with other client */ + /* else { send command to an other client } */ } - } - - /* TODO : we have to play with other client */ + } + + /* We tell to the FD that i can execute commands (ie ClientRunBeforeJob) */ if (launch_before_cmd) { bnet_fsend(fd, runbeforenow); if (!response(jcr, fd, OKRunBeforeNow, "RunBeforeNow", DISPLAY_ERROR)) {