Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3542 Deamon Status

1.490
closed-fixed
Jamie Cameron
5
2009-11-19
2009-11-19
Anonymous
No

After starting the deamons over the webmin-module, the status is shown as down. With 'ps' in the console I can see, that the deamons are running.

In the file /usr/libexec/webmin/bacula-backup/bacula-backup-lib.pl I have changed the lines 541-547 and 551 (comment the lines).
Now it's working for me.

The function is_bacula_running() can't read the results correct I think.
When I start the command in my console I will see this results:

server002:~ # bacula status
Checking for service the Bacula Storage daemon running
Checking for service the Bacula File daemon running
Checking for service the Bacula Director daemon running
server002:~ #

The System is opensuse 11.1 with bacula 2.4.2

# is_bacula_running(process)
# Returns 1 if the specified Bacula process is running, 0 of not
sub is_bacula_running
{
local ($proc) = @_;
#if (&has_command($bacula_cmd)) {
# # Get status from bacula status command
# $bacula_status_cache ||= `$bacula_cmd status 2>&1 </dev/null`;
# return $bacula_status_cache =~ /\Q$proc\E\s+\(pid\s+([0-9 ]+)\)\s+is\s+running/i ||
# $bacula_status_cache =~ /\Q$proc\E\s+is\s+running/i;
# }
#else {
# Look for running process
local @pids = &find_byname($proc);
return @pids ? 1 : 0;
# }
}

Discussion

  • Jamie Cameron
    Jamie Cameron
    2009-11-19

    • status: open --> closed-fixed
     
  • Jamie Cameron
    Jamie Cameron
    2009-11-19

    Thanks - I will include a fix for this in the next Webmin release.