lighttpd 1.4.19-5ubuntu4 i386 init script broken, fix suggested

Bug #329595 reported by jyio
2
Affects Status Importance Assigned to Milestone
lighttpd (Ubuntu)
Fix Released
Undecided
Daniel Hahler

Bug Description

Binary package hint: lighttpd

Upon upgrading the lighttpd package in Kubuntu 9.04, the service fails to start with the following message:

/etc/init.d/lighttpd: 36: function: not found
invoke-rc.d: initscript lighttpd, action "start" failed.

The following code starting on line 36:

function syntax_check
{
    DAEMON $DAEMON_OPTS -t || exit 1
}

should be changed to

syntax_check ()
{
    $DAEMON $DAEMON_OPTS -t || exit 1
}

to fix the problem.

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lighttpd - 1.4.19-5ubuntu5

---------------
lighttpd (1.4.19-5ubuntu5) jaunty; urgency=low

  * Fix bashism in init.d (LP: #329595)

 -- Daniel Hahler <email address hidden> Sun, 15 Feb 2009 23:53:19 +0100

Changed in lighttpd:
status: New → Fix Released
Revision history for this message
jyio (inportb) wrote :

thanks, but the bug wasn't completely fixed -- the DAEMON needs a $ in front too, as in $DAEMON

Revision history for this message
Daniel Hahler (blueyed) wrote :

OMG. Now comes the third upload for this. This time actually tested.
Sorry, and thanks.

Changed in lighttpd:
assignee: nobody → blueyed
status: Fix Released → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lighttpd - 1.4.19-5ubuntu6

---------------
lighttpd (1.4.19-5ubuntu6) jaunty; urgency=low

  * Finally provide what ~ubuntu3 should have been already, fixing
    another shell script error (LP: #329595)

 -- Daniel Hahler <email address hidden> Mon, 16 Feb 2009 20:37:19 +0100

Changed in lighttpd:
status: In Progress → Fix Released
Revision history for this message
jyio (inportb) wrote :

Thanks again; this one is perfect!

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.