dh_systemd_enable --no-enable not working as expected

Noah Meyerhans noahm at debian.org
Sat Nov 15 08:47:35 GMT 2014


Hi all. Before I submit a bug, I wanted to check here to make sure this
issue isn't a matter of user error.

The spamassassin package contains spamd, a daemonized version of
spamassassin. This daemon is not enabled by default, so its unit file is
installed with "dh_systemd_enable --no-enable". It's my expectation that
this is sufficient to install the unit file but leave it disabled until
the user explicitly enables it. However, this doesn't seem to be
working:

root at jessie:~# dpkg -s spamassassin
dpkg-query: package 'spamassassin' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
root at jessie:~# systemctl list-units | grep spam
root at jessie:~# apt-get --no-install-recommends install spamassassin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
razor libdbi-perl pyzor libmail-dkim-perl
Recommended packages:
spamc sa-compile libmail-spf-perl
The following NEW packages will be installed:
spamassassin
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,105 kB of archives.
After this operation, 3,676 kB of additional disk space will be used.
Selecting previously unselected package spamassassin.
(Reading database ... 30082 files and directories currently installed.)
Preparing to unpack .../spamassassin_3.4.0-3_all.deb ...
Unpacking spamassassin (3.4.0-3) ...
Processing triggers for man-db (2.7.0.2-3) ...
Setting up spamassassin (3.4.0-3) ...
root at jessie:~# systemctl list-units | grep spam
spamassassin.service
loaded active running   Perl-based spam filter using text analysis
root at jessie:~# ps auxwww|grep spam
root      2916  4.3 37.9 136200 45272 ?        Ss   00:39   0:03 /usr/sbin/spamd
-d --pidfile=/var/run/spamassassin.pid --create-prefs --max-children 5 --helper
-home-dir
root      2917  0.0 37.7 136200 45072 ?        S    00:39   0:00 spamd child
root      2918  0.0 37.7 136200 45096 ?        S    00:39   0:00 spamd child
root      2925  0.0  1.6  12716  1952 tty1     S+   00:40   0:00 grep spam

The debian/rules file is at
http://anonscm.debian.org/viewvc/collab-maint/deb-maint/spamassassin/trunk/debian/rules?revision=25373&view=markup

Thanks
noah

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20141115/3c43452c/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list