[Bug 477510] [NEW] Broken paths in startup script and config file

Ross Golder ross at golder.org
Sat Nov 7 15:26:08 UTC 2009


Public bug reported:

Binary package hint: amavis-stats

root at red:~# lsb_release -rd
Description:	Ubuntu 9.10
Release:	9.10
root at red:~# getent passwd amavis-stats
root at red:~# apt-get install amavis-stats
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  amavis-stats
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/202kB of archives.
After this operation, 631kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package amavis-stats.
(Reading database ... 36609 files and directories currently installed.)
Unpacking amavis-stats (from .../amavis-stats_0.1.22-1_all.deb) ...
Processing triggers for man-db ...
Setting up amavis-stats (0.1.22-1) ...
adduser: Warning: The home directory `/var/lib/amavis-stats' does not belong to the user you are currently creating.

root at red:~# getent passwd amavis-stats
amavis-stats:x:112:4::/var/lib/amavis-stats:/bin/false
root at red:~# cat /etc/cron.d/amavis-stats 
#
# cron job for the amavis-stats package
#
MAILTO=root
*/5 * * * * amavis-stats  [ -x /usr/sbin/amavis-stats ] && /usr/sbin/amavis-stats /var/log/mail.info

root at red:~# sudo -H -u amavis-stats [ -x /usr/sbin/amavis-stats ] && /usr/sbin/amavis-stats /var/log/mail.info
Config file "/etc/amavis-stats.conf" does not exist, at /usr/sbin/amavis-stats line 225.

(...edit amavis-stats line 1120, set config_file to '/etc/amavis-stats
/amavis-stats.conf'...)

root at red:~# sudo -H -u amavis-stats [ -x /usr/sbin/amavis-stats ] && /usr/sbin/amavis-stats /var/log/mail.info
Amavis-Stats-0.1.22 (2006-01-12): Unknown Argument Usage:
	Amavis-Stats [-u user] [-g group] [-c config-file] ( [start] | stop | reload | debug | foreground )

Looks to me like it's designed to run as a daemon, but has been packaged
to run as a regular cron job for some reason. Anyway, I'm confused about
which way to take it.

** Affects: amavis-stats (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Broken paths in startup script and config file
https://bugs.launchpad.net/bugs/477510
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list