Init script missing function when starting lighttpd

Bug #600767 reported by Richard Eames on 2010-07-01
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lighttpd (Ubuntu)
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

Richard Eames (naddiseo) wrote :

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

Changed in lighttpd (Ubuntu):
status: New → Confirmed

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

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.

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

Daniel Hahler (blueyed) on 2010-07-15
Changed in lighttpd (Ubuntu):
importance: Undecided → Medium
importance: Medium → High
status: Confirmed → Triaged
status: Triaged → In Progress
assignee: nobody → Daniel Hahler (blueyed)
Daniel Hahler (blueyed) wrote :

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

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  Edit
Everyone can see this information.

Other bug subscribers