Package: nginx
Version: 0.7.65-2~bpo50+1
Severity: wishlist
Tags: patch
Hi,
I wanted a simple way to control running nginx w/o fiddling with
update-rc.d and friends, and also w/o munging the init file. The
enclosed patch makes it possible for the user to control (inhibit)
running nginx by setting the DAEMON variable to an invalid name in
/etc/default/nginx.
Enjoy,
--Toni++
-- System Information:
Debian Release: 5.0.5
APT prefers stable
APT policy: (990, 'stable'), (450, 'testing'), (250, 'unstable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-bpo.5-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages nginx depends on:
ii libc6 2.7-18lenny4 GNU C Library: Shared libraries
ii libpcre3 7.6-2.1 Perl 5 Compatible Regular Expressi
ii libssl0.9.8 0.9.8g-15+lenny7 SSL shared libraries
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
nginx recommends no packages.
nginx suggests no packages.
-- no debconf information
--- /tmp/nginx.orig 2010-05-06 18:39:45.000000000 +0200
+++ nginx 2010-08-27 16:27:32.000000000 +0200
@@ -15,13 +15,13 @@
NAME=nginx
DESC=nginx
-test -x $DAEMON || exit 0
-
# Include nginx defaults if available
if [ -f /etc/default/nginx ] ; then
. /etc/default/nginx
fi
+test -x $DAEMON || exit 0
+
set -e
. /lib/lsb/init-functions