Package: screen
Version: 4.0.2-4.1
Severity: minor
Tags: patch
Hi,
the attached patch changes the screen init.d script(s) to use lsb
logging functions.
(Another alternative would of course be to remove the logging output
altogether since the provided information isn't useful at all).
Regards,
David
--
David Härdeman
diff -ur ./screen-4.0.2.orig/debian/control ./screen-4.0.2/debian/control
--- ./screen-4.0.2.orig/debian/control 2006-09-03 22:00:44.000000000 +0200
+++ ./screen-4.0.2/debian/control 2006-09-03 22:02:56.000000000 +0200
@@ -7,7 +7,7 @@
Package: screen
Architecture: any
-Depends: ${shlibs:Depends}, base-passwd (>= 2.0.3.4), passwd (>= 1:4.0.3-10)
+Depends: ${shlibs:Depends}, base-passwd (>= 2.0.3.4), passwd (>= 1:4.0.3-10),
lsb-base (>= 3.0-10)
Pre-Depends: debconf (>= 0.2.17)
Conflicts: suidmanager (<< 0.52)
Description: a terminal multiplexor with VT100/ANSI terminal emulation
diff -ur ./screen-4.0.2.orig/debian/init ./screen-4.0.2/debian/init
--- ./screen-4.0.2.orig/debian/init 2006-09-03 22:00:44.000000000 +0200
+++ ./screen-4.0.2/debian/init 2006-09-03 22:02:25.000000000 +0200
@@ -6,13 +6,14 @@
set -e
SCREENDIR=/var/run/screen
+. /lib/lsb/init-functions
case "$1" in
start)
if find $SCREENDIR -type p | grep '^' >/dev/null; then
- echo -n 'Cleaning up stale screen sessions... '
+ [ "$VERBOSE" != "no" ] && log_action_begin_msg "Cleaning up stale
screen sessions"
find $SCREENDIR -type p -print0 | xargs -0 rm -f
- echo "done."
+ [ "$VERBOSE" != "no" ] && log_action_end_msg 0
fi
;;
stop|restart|reload|force-reload)