Init script missing function when starting lighttpd

Bug #600767 reported by Richard Eames
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lighttpd (Ubuntu)
Fix Released
High
Daniel Hahler

Bug Description

Binary package hint: lighttpd

When starting lighttpd:

$ sudo service lighttpd start
/etc/init.d/lighttpd: 96: syntax_check: not found

Could be fixed by adding:

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

to the file.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: lighttpd 1.4.26-3ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-6.8-generic 2.6.35-rc3
Uname: Linux 2.6.35-6-generic x86_64
Architecture: amd64
Date: Thu Jul 1 12:45:49 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_CA.utf8
 SHELL=/bin/bash
SourcePackage: lighttpd

Revision history for this message
Richard Eames (naddiseo) wrote :
Revision history for this message
David Sugar (dyfet-deactivatedaccount) wrote :

I have confirmed this in Maverick. I can do a simple patch for this.

Changed in lighttpd (Ubuntu):
status: New → Confirmed
Revision history for this message
David Sugar (dyfet-deactivatedaccount) wrote :

I think functions require "bash", and /bin/sh is "dash" by default. But it could be done inline in place of syntax_check.

Revision history for this message
David Sugar (dyfet-deactivatedaccount) wrote :

This apparently was fixed once before in bug 286887, I am guessing it was lost during a merge, and again referred to in bug 329595.

Revision history for this message
David Sugar (dyfet-deactivatedaccount) wrote :

Simple diff for this attached as per suggested. My mistake, there is no dash issue involved.

Daniel Hahler (blueyed)
Changed in lighttpd (Ubuntu):
importance: Undecided → Medium
importance: Medium → High
status: Confirmed → Triaged
status: Triaged → In Progress
assignee: nobody → Daniel Hahler (blueyed)
Revision history for this message
Daniel Hahler (blueyed) wrote :

Thanks, I'll upload it and forward it to Debian.

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

This bug was fixed in the package lighttpd - 1.4.26-3ubuntu2

---------------
lighttpd (1.4.26-3ubuntu2) maverick; urgency=low

  * syntax_check function defined in init script. (LP: #600767)
 -- David Sugar <email address hidden> Thu, 15 Jul 2010 17:50:35 +0000

Changed in lighttpd (Ubuntu):
status: In Progress → Fix Released
tags: added: patch
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.