[Bug 697788] [NEW] No log output when launching iceccd

Launchpad Bug Tracker 697788 at bugs.launchpad.net
Wed Oct 26 05:50:02 UTC 2011


You have been subscribed to a public bug by Rolf Leggewie (r0lf):

Binary package hint: icecc

1) 
~$ lsb_release -rd
Description:	Ubuntu 10.10
Release:	10.10

2)
~$ apt-cache policy icecc
icecc:
  Installed: 0.9.5-2
  Candidate: 0.9.5-2
  Version table:
 *** 0.9.5-2 0
        500 http://br.archive.ubuntu.com/ubuntu/ maverick/universe amd64 Packages
        100 /var/lib/dpkg/status

3) What is expected:
The log output at /var/log/iceccd.log file when iceccd is launched

4) What happened instead?
There is no log file

5) Probing:

In the /etc/init.d/icecc we have:

start-stop-daemon --start --quiet --exec $DAEMON -- \
-d "$logfile" $nice $scheduler $netname -u icecc $basedir $maxjobs

and $logfile is "-l /var/log/iceccd.log". Note that there is a "" around
$logfile variable. When stracing the init script execution, we got the
following relevant output:

[pid 30944] execve("/sbin/start-stop-daemon", ["start-stop-daemon", "--start", "--quiet", "--exec", "/usr/sbin/iceccd", "--", "-vvv", "-d", "-l /var/log/iceccd.log", "--nice", "5", "-n", "openbossa", "-u", "icecc", "-b", ...], [/* 17 vars */]) = 0
(...)
[pid 30944] execve("/usr/sbin/iceccd", ["/usr/sbin/iceccd", "-vvv", "-d", "-l /var/log/iceccd.log", "--nice", "5", "-n", "openbossa", "-u", "icecc", "-b", "/var/cache/icecc"], [/* 17 vars */]) = 0
(...)
[pid 30944] open(" /var/log/iceccd.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = -1 ENOENT (No such file or directory)

6) Solution:
Removing the "" around $logfile solves the issue. I just don't know why only $logfile variable is embraced by quotes. If there is a reason, other solution must be applied.

** Affects: icecc (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: icecc (Ubuntu Lucid)
     Importance: Undecided
         Status: Fix Committed

** Affects: icecc (Ubuntu Hardy)
     Importance: Undecided
         Status: Fix Committed

** Affects: icecc (Debian)
     Importance: Unknown
         Status: Fix Released


** Tags: patch-accepted-debian
-- 
No log output when launching iceccd
https://bugs.launchpad.net/bugs/697788
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list