~ubuntu-branches/ubuntu/oneiric/lighttpd/oneiric

« back to all changes in this revision

Viewing changes to debian/lighttpd.init

  • Committer: Bazaar Package Importer
  • Author(s): Lorenzo De Liso
  • Date: 2010-10-15 21:01:50 UTC
  • mfrom: (6.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20101015210150-edjmolu35qt56evm
Tags: 1.4.28-1ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: 
    + libgamin-dev rather than libfam-dev to fix startup warning.
    + debhelper Build-depends bumped to (>= 7.0.50) for
      overrides in rules file. 
  - debian/index.html: s/Debian/Ubuntu/g branding on the default page.
  - Added a UFW profile set:
    + debian/lighttpd.dirs: added etc/ufw/applications.d
    + debian/rules: install the ufw profile.
    + debian/control: Suggests on ufw.
  - Add lighttpd-dev package:
    + debian/control: Added lighttpd-dev package; Build-depends on
      automake, libtool
    + debian/lighttpd-dev.install: Added.
  - debian/rules:
    + Add override_dh_installinit to set "defaults 91 09" to not start
      before apache2 but in the same runlevel with the same priority.
  - debian/patches/build-dev-package.patch: Updated
  - debian/lighttpd.conf: Comment 'use-ipv6.pl' by default, which causes
    failure to bind port in ipv4 (LP: #551211)
* debian/patches/build-dev-package.patch: updated
* Dropped changes:
  - debian/lighttpd.init: clean environment; Check syntax during start/reload:
    this change has been applied in the debian package
  - syntax_check function defined in init script. (LP: #600767): this change
    has been applied in the debian package
  - debian/patches/build-dev-package.patch: Updated: patch updated newly 

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
set -e
26
26
 
 
27
check_syntax()
 
28
{
 
29
        $DAEMON -t $DAEMON_OPTS > /dev/null || exit $?
 
30
}
 
31
 
27
32
if [ "$1" != status ]; then
28
33
        # be sure there is a /var/run/lighttpd, even with tmpfs
29
34
        mkdir --mode 750 --parents /var/run/lighttpd
32
37
 
33
38
. /lib/lsb/init-functions
34
39
 
35
 
syntax_check() {
36
 
        $DAEMON -t $DAEMON_OPTS || exit $?
37
 
}
38
 
 
39
40
case "$1" in
40
41
    start)
41
 
        syntax_check
 
42
        check_syntax
42
43
        log_daemon_msg "Starting $DESC" $NAME
43
44
        if ! start-stop-daemon --start --oknodo --quiet \
44
45
            --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
60
61
        fi
61
62
        ;;
62
63
    reload|force-reload)
63
 
        syntax_check
 
64
        check_syntax
64
65
        log_daemon_msg "Reloading $DESC configuration" $NAME
65
66
        if start-stop-daemon --stop --signal INT --quiet \
66
67
            --pidfile $PIDFILE --exec $DAEMON
87
88
        fi
88
89
        ;;
89
90
    restart)
 
91
        check_syntax
90
92
        $0 stop
91
93
        $0 start
92
94
        ;;