Public bug reported:

Binary package hint: klogd

I've wanted to log kernel messages into a separate file. When I've
modified /etc/default/klogd to set the parameters for klogd i noticed
that klogd was not running after restart.

Steps to reproduce:
 - Edit /etc/default/klogd and add this line : KLOGD="-P /var/run/klogd/kmsg -f 
/var/log/klog"
 - Restart klogd : invoke-rc.d klogd restart
 - Check to see if klogd is running: pidof klogd

More info:
 Looks like the problem is related to start-stop-daemon as :
  start-stop-daemon --start --quiet --chuid klog --exec /sbin/klogd -- -P 
/var/run/klogd/kmsg -f /var/log/klog # Fails to start klogd
  /sbin/klogd -P /var/run/klogd/kmsg -f /var/log/klog                           
                                                                    # Starts 
klogd ok

 Also while looking in /etc/init.d/klogd i've noticed that the -P
argument's value is set from within the init script but it's ignored if
KLOGD var is set in /etc/default/klogd script. My suggestion is to move
the -P mandatory argument in /etc/default/klogd so that the user will be
aware of it or don't ignore it it if no other -P is specified in
/etc/default/klogd


dcerouter_71177:~# lsb_release -rd
Description:    Ubuntu 7.10
Release:        7.10

dcerouter_71177:~# dpkg -l klogd dpkg
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                                   Version                              
  Description
+++-======================================-======================================-============================================================================================
ii  dpkg                                   1.14.5ubuntu16                       
  package maintenance system for Debian
ii  klogd                                  1.4.1-21ubuntu3                      
  Kernel Logging Daemon

** Affects: sysklogd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Klogd's init script doesn't correctly handle /etc/default/klogd file
https://bugs.launchpad.net/bugs/219123
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to