+lsb (3.2-16) unstable; urgency=low
+
+ * Add a bugscript to lsb-release to help figure out why people keep
+ getting very strange results.
+ * Lenny will be Debian 5.0, not Debian 4.1; fix accordingly.
+ * Improve output of lsb-specified logging functions; deal with
+ in-the-wild variations that omit messages.
+ * No longer use --retry in start-stop-daemon calls. (Closes: #451529)
+ * Fix behavior of killproc and pidofproc when no pidfile is passed in.
+ * Call pidof with -x to include scripts that may be daemonized.
+ * Change dependencies *cupsys* -> *cups*. (Closes: #490381)
+
+ -- Chris Lawrence <lawrencc@debian.org> Fri, 01 Aug 2008 16:39:43 -0500
+
lsb (3.2-15) unstable; urgency=low
* Add Basque [eu] translation. (Closes: #491005)
Package: lsb-core
Architecture: any
-Depends: lsb-release, ${glibc}, libz1, libncurses5, libpam0g, exim4 | mail-transport-agent, at, bc, binutils, bsdmainutils, bsdutils, cpio, cron, ed, file, libc6-dev | libc-dev, locales, lpr, lprng | cupsys-client, m4, mailx | mailutils, make, man-db, mawk | gawk, ncurses-term, passwd, patch, pax, procps, psmisc, rsync, alien (>= 8.36), ${python:Depends}, ${misc:Depends}, ${depends}, lsb-base
+Depends: lsb-release, ${glibc}, libz1, libncurses5, libpam0g, exim4 | mail-transport-agent, at, bc, binutils, bsdmainutils, bsdutils, cpio, cron, ed, file, libc6-dev | libc-dev, locales, lpr, lprng | cups-client, m4, mailx | mailutils, make, man-db, mawk | gawk, ncurses-term, passwd, patch, pax, procps, psmisc, rsync, alien (>= 8.36), ${python:Depends}, ${misc:Depends}, ${depends}, lsb-base
Provides: lsb-core-noarch, ${provides}
Conflicts: python (>= 2.6), lsb (<< 2.0-2)
Replaces: lsb (<< 2.0-2)
Package: lsb-printing
Architecture: any
-Depends: lsb-core (>= 3.2), libcupsys2, libcupsimage2, foomatic-filters, ghostscript | gs
+Depends: lsb-core (>= 3.2), libcups2, libcupsimage2, foomatic-filters, ghostscript | gs
Provides: lsb-printing-noarch, ${provides}
Description: Linux Standard Base 3.2 Printing package
The Linux Standard Base (http://www.linuxbase.org/) is a standard
--- /dev/null
+#!/bin/sh
+echo 'lsb_release output' >& 3
+echo '-*- -*- -*- -*- -*-'>&3
+lsb_release -a >& 3
+echo '-*- -*- -*- -*- -*-'>&3
+echo ' Apt policy' >&3
+echo '-*- -*- -*- -*- -*-'>&3
+apt-cache policy >&3
+echo '-*- -*- -*- -*- -*-'>&3
+echo ' sources.list' >&3
+echo '-*- -*- -*- -*- -*-'>&3
+if [ -f /etc/apt/sources.list ]; then
+ cat /etc/apt/sources.list | grep -v '^\s*#' | grep -v '^\s*$' >&3
+else
+ echo '- none' >&3
+fi
+echo '-*- -*- -*- -*- -*-'>&3
+echo ' /etc/lsb_release' >&3
+echo '-*- -*- -*- -*- -*-'>&3
+if [ -f /etc/lsb_release ]; then
+ cat /etc/lsb_release >&3
+else
+ echo '- none' >&3
+fi
cp -p initdutils.py install_initd remove_initd lsbinstall debian/lsb-core/usr/lib/lsb
cp -p init-functions debian/lsb-base/lib/lsb
cp -p lsb_release debian/lsb-release/usr/bin
+ cp -p debian/lsb-release.bugscript debian/lsb-release/usr/share/bug/lsb-release
# Build architecture-independent files here.
binary-indep: build install
done
shift $(($OPTIND - 1))
- if [ -z "${pidfile:-}" ]; then
- pidfile=/var/run/${1##*/}.pid
- fi
-
- if [ -f "$pidfile" ]; then
+ if [ -n "${pidfile:-}" -a -e "$pidfile" ]; then
read pid < "$pidfile"
if [ -n "${pid:-}" ]; then
if $(kill -0 "${pid:-}" 2> /dev/null); then
fi
if [ -x /bin/pidof -a ! "$specified" ]; then
status="0"
- /bin/pidof -o %PPID $1 || status="$?"
+ /bin/pidof -o %PPID -x $1 || status="$?"
if [ "$status" = 1 ]; then
return 3 # program is not running
fi
base=${1##*/}
if [ ! $pidfile ]; then
- pidfile=/var/run/$base.pid
name_param="--name $base"
+ else
+ name_param="--pidfile $pidfile"
fi
sig=$(echo ${2:-} | sed -e 's/^-\(.*\)/\1/')
status=0
if [ ! "$is_term_sig" = yes ]; then
if [ -n "$sig" ]; then
- /sbin/start-stop-daemon --stop --signal "$sig" --pidfile "$pidfile" --quiet $name_param || status="$?"
+ /sbin/start-stop-daemon --stop --signal "$sig" --quiet $name_param || status="$?"
else
- /sbin/start-stop-daemon --stop --pidfile "$pidfile" --quiet $name_param || status="$?"
+ /sbin/start-stop-daemon --stop --quiet $name_param || status="$?"
fi
else
- /sbin/start-stop-daemon --stop --pidfile "$pidfile" --retry 5 --quiet --oknodo $name_param || status="$?"
+ /sbin/start-stop-daemon --stop --quiet --oknodo $name_param || status="$?"
fi
if [ "$status" = 1 ]; then
if [ -n "$sig" ]; then
return 3 # program is not running
fi
- if [ "$status" = 0 -a "$is_term_sig" = yes ]; then
- pidofproc -p $pidfile "$1" >/dev/null || rm -f "$pidfile"
+ if [ "$status" = 0 -a "$is_term_sig" = yes -a "$pidfile" ]; then
+ pidofproc -p "$pidfile" "$1" >/dev/null || rm -f "$pidfile"
fi
return 0
}
status="0"
pidofproc $pidfile $daemon >/dev/null || status="$?"
if [ "$status" = 0 ]; then
- log_success_msg "$name is running."
+ log_success_msg "$name is running"
return 0
else
- log_failure_msg "$name is not running."
+ log_failure_msg "$name is not running"
return $status
fi
}
}
log_success_msg () {
- echo "$@"
+ if [ -n "${1:-}" ]; then
+ log_begin_msg $@
+ fi
+ log_end_msg 0
}
log_failure_msg () {
- if log_use_fancy_output; then
- RED=`$TPUT setaf 1`
- NORMAL=`$TPUT op`
- /bin/echo -e "${RED}*${NORMAL} $@"
- else
- echo "$@"
+ if [ -n "${1:-}" ]; then
+ log_begin_msg $@
fi
+ log_end_msg 1
}
log_warning_msg () {
- if log_use_fancy_output; then
- YELLOW=`$TPUT setaf 3`
- NORMAL=`$TPUT op`
- /bin/echo -e "${YELLOW}*${NORMAL} $@"
- else
- echo "$@"
+ if [ -n "${1:-}" ]; then
+ log_begin_msg $@
fi
+ log_end_msg -1
}
#
# and if /usr is already mounted
if log_use_fancy_output; then
RED=`$TPUT setaf 1`
+ YELLOW=`$TPUT setaf 3`
NORMAL=`$TPUT op`
if [ $1 -eq 0 ]; then
echo "."
+ elif [ $1 -eq -1 ]; then
+ /bin/echo -e " ${YELLOW}(warning).${NORMAL}"
else
/bin/echo -e " ${RED}failed!${NORMAL}"
fi
else
if [ $1 -eq 0 ]; then
echo "."
+ elif [ $1 -eq -1 ]; then
+ echo -e " (warning)."
else
echo " failed!"
fi
'3.0' : 'woody',
'3.1' : 'sarge',
'4.0' : 'etch',
- '4.1' : 'lenny',
+ '5.0' : 'lenny',
}
TESTING_CODENAME = 'lenny'
+++ /dev/null
-. init-functions
-start_daemon -p /var/run/dirmngr.pid /usr/bin/dirmngr --daemon --sh
--- /dev/null
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides: svnd
+# Required-Start: $syslog $remote_fs
+# Should-Start: $time ypbind sendmail
+# Required-Stop: $syslog $remote_fs
+# Should-Stop: $time ypbind sendmail
+# Default-Start: 3 5
+# Default-Stop: 0 1 2 6
+# Short-Description: The daemon
+# Description: a cool daemon
+### END INIT INFO
+# chkconfig: 345 99 00
+# description: a cool daemon
+
+
+DAEMON="/tmp/minid.pl"
+
+PARA=" "
+. /lib/lsb/init-functions
+
+case "$1" in
+ start)
+ echo -n "Starting $DAEMON "
+ start_daemon $DAEMON $PARA
+ RETVAL=$?
+ ;;
+ stop)
+ echo -n "Shutting down $DAEMON "
+ killproc $DAEMON -TERM
+ RETVAL=$?
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ status)
+ echo -n "Checking for service $DAEMON "
+ pidofproc $DAEMON 2>&1 >/dev/null
+ RETVAL=$?
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|status}"
+ exit 1
+ ;;
+esac
+
+if [ "x$RETVAL" = "x0" ] ; then
+ log_success_msg
+ else
+ log_failure_msg
+fi
--- /dev/null
+#!/usr/bin/perl -w
+# detach from tty
+main:
+$pid = fork;
+exit if $pid;
+die "fork: $!" unless defined $pid;
+print "continue in child";
+sleep(4000);