Public bug reported:
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: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/697788
Title:
No log output when launching iceccd
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs