Package: dh-make Version: 0.45 Severity: normal *** Please type your report below this line ***
The init.d.lsb.ex file setup by dh-make has a few bugs in it: - STARTIME is declared at the start of the script, but the body of the script uses STARTTIME (extra "T") - The script uses set -e, but many parts of the script assume that the script won't terminate when non-zero is returned. Here is how I fixed it in my packages setup with dh_make: Change code like this in init.d: do_something log_end_msg $? To this: errcode=0 do_something || errcode=$? log_end_msg $errcode - init.d doesn't work well when the service is an interpreted script instead of a binary. Here is how I fixed it for my Python service: (near top of script, before DAERMON= line) INTERP=/usr/bin/python2.5 In stop_server(), use $INTERP as the start-stop-daermon --exec option. In running_pid(), have this code: cmd=`cat /proc/$pid/cmdline | tr "\000" "\n" | head -n 2` NL=" " # Is this the expected server [ "$cmd" != "${INTERP}${NL}$DAEMON" ] && return 1 -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core) Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages dh-make depends on: ii debhelper 7.0.9 helper programs for debian/rules ii dpkg-dev 1.14.19 package building tools for Debian ii make 3.81-4 The GNU version of the "make" util ii perl 5.10.0-10 Larry Wall's Practical Extraction dh-make recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]