bacula-director script broken

Bug #204145 reported by CaptRon
4
Affects Status Importance Assigned to Milestone
bacula (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: bacula

In the change to bacula 2.2.8-5, the bacula-director script breaks on my server. I get Syntax error: "fi" unexpected (expecting "then") at this code:
   if do_start; log_daemon_msg -n "Starting $DESC: "; fi

The older version had this:
   if do_start ; then echo "$NAME."
   else echo "failed." ; fi

If I change the code to the old version OR change the logic of the new version, I get the following error:
log_daemon_msg not found

Whazzup?

Thanx,
-Ron

Revision history for this message
Paul Wagland (paul-kungfoocoder) wrote :

The script is broken since it appears to be expecting bash instead of dash. That is why the if is broken.

Secondly, the log_daemon_msg appears to have been replaced with log_begin_action_msg in ubuntu, causing the second error.

I can confirm that the current package is broken.

Ante Karamatić (ivoks)
Changed in bacula:
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bacula - 2.2.8-5ubuntu4

---------------
bacula (2.2.8-5ubuntu4) hardy; urgency=low

  * Partial rewrite of init script for bacula-director-common (LP: #204145)
    - includes LSB init functions
    - fix for couple of typos

 -- Ante Karamatic <email address hidden> Fri, 21 Mar 2008 18:46:07 +0100

Changed in bacula:
status: In Progress → Fix Released
Revision history for this message
Ante Karamatić (ivoks) wrote :

 bacula (2.2.8-5ubuntu4) hardy; urgency=low
 .
   * Partial rewrite of init script for bacula-director-common (LP: #204145)
     - includes LSB init functions
     - fix for couple of typos

Changed in bacula:
status: Fix Released → Fix Committed
Ante Karamatić (ivoks)
Changed in bacula:
status: Fix Committed → Fix Released
Revision history for this message
CaptRon (captrenaldo) wrote :

Paul, thank you for your input.
Ante, thank you for your rapid fix!

Keep up the great work,
-Ron

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.