Subject: cntlm starts before the network is up
Package: cntlm
Version: 0.35.1-5
Severity: important
Tags: patch

I installed cntlm. It worked directly after the install but not after the 
first
and subsequent reboots.

The following was found in /var/log/syslog:
cntlm: Starting cntlm version 0.35.1 for LITTLE endian
cntlm: Proxy listening on 127.0.0.1:3128
cntlm: Cannot resolve proxy xyz.network.int:8080, discarding.
cntlm: Parent proxy address missing.

The syslog also revealed that the network interface is initialized after 
the
failing start of the cntlm daemon.

The daemon could be manually started by the command below:
invoke-rc.d start cntlm

I fixed this issue on my system by appending $network to the 
Required-Start and
Required-Stop fields in the LSB header of the init.d script.

diff -Naur a/etc/init.d/cntlm b/etc/init.d/cntlm
--- a/etc/init.d/cntlm  2010-07-13 14:05:18.000000000 +0200
+++ b/etc/init.d/cntlm  2010-07-13 14:04:57.000000000 +0200
@@ -2,8 +2,8 @@
 #
 ### BEGIN INIT INFO
 # Provides:          cntlm
-# Required-Start:    $syslog $time
-# Required-Stop:     $syslog $time
+# Required-Start:    $syslog $time $network
+# Required-Stop:     $syslog $time $network
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: Authenticating HTTP accelerator for NTLM secured 
proxies



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cntlm depends on:
ii  adduser                       3.112      add and remove users and 
groups
ii  libc6                         2.11.2-2   Embedded GNU C Library: 
Shared lib

cntlm recommends no packages.

cntlm suggests no packages.

-- Configuration Files:
/etc/cntlm.conf [Errno 13] Permission denied: u'/etc/cntlm.conf'
/etc/init.d/cntlm changed [not included]

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to