Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465542 - mail-filter/spamassassin - Please include systemd service file
Summary: mail-filter/spamassassin - Please include systemd service file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2013-04-11 15:19 UTC by August Hörandl
Modified: 2013-08-30 18:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description August Hörandl 2013-04-11 15:19:14 UTC
There is no support for systemd in spamassassin.

Reproducible: Always

Steps to Reproduce:
1. switch to systemd ;-)
2. try to start spamd



There are some spamassassin.service files floating around, e.g.
http://lists.fedoraproject.org/pipermail/scm-commits/2011-August/647663.html

The following hack works for me: spamassassin.service
[Unit]
Description=Spamassassin daemon

[Service]
EnvironmentFile=/etc/conf.d/spamd
ExecStart=/usr/sbin/spamd -m 5 -c
Restart=always
StandardOutput=syslog

[Install]
WantedBy=multi-user.target
Comment 1 Pacho Ramos gentoo-dev 2013-07-27 07:14:33 UTC
Looks like unit file is a bit different between distros:
http://pkgs.fedoraproject.org/cgit/spamassassin.git/tree/spamassassin.service

-> relies in /etc/sysconfig for configuration

https://projects.archlinux.org/svntogit/packages.git/tree/trunk/spamassassin.service?h=packages/spamassassin

-> doesn't have configuration file
Comment 2 Pacho Ramos gentoo-dev 2013-08-20 09:09:58 UTC
Reading conf.d file looks like we can go ahead with the Arch approach (no config) as the other options are deep enough to deserve a creation of a custom unit by the user (currently, options provided by the conf.d file even requires editing of init.d file)

I will review and commit in a week if nobody disagrees. Thanks
Comment 3 Pacho Ramos gentoo-dev 2013-08-30 18:48:16 UTC
+*spamassassin-3.3.2-r2 (30 Aug 2013)
+
+  30 Aug 2013; Pacho Ramos <pacho@gentoo.org> +files/spamassassin.service,
+  +spamassassin-3.3.2-r2.ebuild:
+  Add unit file (#465542 by August Hörandl)
+