Menu

#4397 bacula-backup start/stop/restart patch

All
closed-fixed
None
5
2014-03-31
2014-03-31
hansaplast
No

The buttons [Start/Stop and Restart Bacula] in the Bacula Backup System do not function correctly. Only the bacula-dir daemon is stopped and an error is returned.

Failed to stop Bacula : Failed to start bacula-dir :

Shutting down bacula-dir: [ OK ]

I took a look at the code and figured out that init::start_action, init::stop_action and init::restart_action results are incorrectly handled or the result is invalid.

System: CentOS release 6.4
Webmin: webmin-1.660-1
Module: Bacula Backup System
Module Config: Use "Init scripts" instead of default "bacula command"

File: /usr/libexec/webmin/bacula-backup/bacula-backup-lib.pl
Function: run_all_inits
ln: 626
Result: Error handling fails.

Clicking [Stop Bacula] button executes init::stop_action (ln 626). The returned result is incorrectly handled. For now I've commented out the error handling but a 'real' developer should fix this.

Best Regards, Hansa

627,629c627,629
<       if ($err) {
<               return &text('start_erun', "<tt>$i</tt>",
"<pre>$err</pre>");
<               }
---
>       #if ($err) {
>       #       return &text('start_erun', "<tt>$i</tt>",
"<pre>$err</pre>");
>       #       }

Discussion

  • Jamie Cameron

    Jamie Cameron - 2014-03-31
    • status: open --> closed-fixed
     
    • hansaplast

      hansaplast - 2014-04-01

      hansaplast wrote:
      ... a 'real' developer should fix this

      And he did ;-)
      Thanks (again) Jamie!

       

Log in to post a comment.