Package: apt-cacher-ng
Version: 3.2.1-1
Severity: grave

Dear maintainers,

It seems there is one bad exit code issue (=0) when trying to start démon if internal check is bad. (/etc/init.d/apt-cacher-ng start)

ansible@srv-apt-cache-400:~$ dpkg -l |grep apt-cache
ii apt-cacher-ng 3.2.1-1 amd64 caching proxy server for software repositories


ansible@srv-apt-cache-400:~$ uname -a
Linux srv-apt-cache-400 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux


ansible@srv-apt-cache-400:~$ cat /etc/debian_version
10.6

ansible@srv-apt-cache-400:~$ pstree -anp
init,1
  |-sshd,682
  |   |-sshd,717
  |   |   `-sshd,719
  |   `-sshd,11014
  |       `-sshd,11016
  |           `-bash,11017
  |               `-pstree,11964 -anp
  |-getty,696 38400 tty2
  |-getty,697 38400 tty3
  |-getty,698 38400 tty4
  |-monit,7389 -c /etc/monit/monitrc
  |   |-{monit},7390
  |   |-{monit},7913
  |   `-(bash,11655)
  |-syslog-ng,9901
  |   `-syslog-ng,9902 -p /var/run/syslog-ng.pid --no-caps
  `-cron,17286


ansible@srv-apt-cache-400:~$ sudo /etc/init.d/apt-cacher-ng start
[....] Starting apt-cacher-ng: apt-cacher-ngProblem creating log files. Check permissions of the log directory, //var/log/apt-cacher-ng
 failed!
ansible@srv-apt-cache-400:~$ echo $?
0
ansible@srv-apt-cache-400:~$

And, of course, this is true, because ...

ansible@srv-apt-cache-400:~$ sudo ls -altr /var/log/apt-cacher-ng
total 2
drwx------ 2 root root 1024 Nov  6 14:34 .
drwxr-xr-x 8 root root 1024 Nov  6 14:52 ..

Thanks in advance to correct this issue. In my use case, because i am using Ansible to make deployment, it is then not possible to detect this bug (because exit code = 0) in one automatic way

Best regards

Reply via email to