[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#367556: /etc/init.d/x11-common doesn't setup ICE socket unless in verbose mode



Package: x11-common
Version: 1:7.0.18
Severity: normal
Tags: patch

Hi,

I've just upgraded from xorg 6.9 and I couldn't start KDE anymore. I
found out that the problem was whith the ICE socket directory, that
didn't exist. This directory is supposed to be created by the x11-common
init script, but when "verbose" is set to "no" in /etc/default/rcS the
script exits just after create the X11 socket directory. I replaced
"exit 0" in the script by "return 0" and now it works all right.
See patch attached.

Thanks,
Gilmar Santos Jr

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-ss2-rfs4
Locale: LANG=pt_BR, LC_CTYPE=pt_BR (charmap=ISO-8859-1) (ignored: LC_ALL set to pt_BR)

Versions of packages x11-common depends on:
ii  debconf [debconf-2.0]         1.5.0      Debian configuration management sy
ii  debianutils                   2.15.7     Miscellaneous utilities specific t
ii  lsb-base                      3.1-5      Linux Standard Base 3.1 init scrip

x11-common recommends no packages.

-- debconf information:
  x11-common/xwrapper/nice_value: 0
  x11-common/xwrapper/allowed_users: Console Users Only
  x11-common/experimental_packages:
  x11-common/xwrapper/actual_allowed_users: console
  x11-common/xwrapper/nice_value/error:
--- x11-common.old	2006-05-16 16:46:18.000000000 -0300
+++ x11-common	2006-05-16 16:47:05.000000000 -0300
@@ -28,7 +28,7 @@
   chown 0:0 $SOCKET_DIR
   chmod 1777 $SOCKET_DIR
   do_restorecon $SOCKET_DIR
-  [ "$VERBOSE" != no ] && log_end_msg 0 || exit 0
+  [ "$VERBOSE" != no ] && log_end_msg 0 || return 0
 }
 
 set_up_ice_dir () {
@@ -42,7 +42,7 @@
   chown 0:0 $ICE_DIR
   chmod 1777 $ICE_DIR
   do_restorecon $ICE_DIR
-  [ "$VERBOSE" != no ] && log_end_msg 0 || exit 0
+  [ "$VERBOSE" != no ] && log_end_msg 0 || return 0
 }
 
 case "$1" in

Reply to: