There is missing part, where are installed systemd services.
same for rmilter. It works for me with small changes to service/socket files (socket files not work for me, not sure yet..) ############ CHANGED USER ########### rspamd.service [Unit] Description=rapid spam filtering system After=nss-lookup.target [Service] ExecStart=/usr/bin/rspamd -c /etc/rspamd/rspamd.conf -f User=rspamd RuntimeDirectory=rspamd RuntimeDirectoryMode=0755 Restart=always [Install] WantedBy=multi-user.target ############ CHANGED USER ########### rmilter.socket [Unit] Description=Another sendmail milter for different mail checks [Socket] ListenStream=/var/run/rmilter/rmilter.sock SocketUser=rmilter SocketGroup=adm SocketMode=660 [Install] WantedBy=sockets.target
Can one of you please try this patch? diff --git a/mail-filter/rspamd/rspamd-1.2.6.ebuild b/mail-filter/rspamd/rspamd-1.2.6.ebuild index 6e2b770..2635e80 100644 --- a/mail-filter/rspamd/rspamd-1.2.6.ebuild +++ b/mail-filter/rspamd/rspamd-1.2.6.ebuild @@ -4,7 +4,7 @@ EAPI=5 -inherit cmake-utils user +inherit cmake-utils user systemd DESCRIPTION="Rapid spam filtering system" SRC_URI="https://rspamd.com/downloads/${P}.tar.xz" @@ -13,7 +13,7 @@ HOMEPAGE="https://github.com/vstakhov/rspamd" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="+jit" +IUSE="+jit systemd" DEPEND="dev-libs/openssl:0[-bindist] jit? ( @@ -59,4 +59,6 @@ src_install() { insinto /etc/logrotate.d newins "${FILESDIR}/rspamd.logrotate" rspamd + + systemd_newunit rspamd.service } I'm not sure yet whether both the service and socket files from rspamd are needed, or how to install the socket file.
Please do not use systemd USE to control unit file installation: https://wiki.gentoo.org/wiki/Project:Systemd/Ebuild_policy#General_guidelines
Ah, good point, thanks!
also original user in service unit is "_rspamd", I guess it needs to be replaced with "rspamd"
mail-filter/rspamd-1.2.6 is not in the tree anymore. We only have ~1.6.5 ~1.6.6 ~1.7.1 ~1.7.2 ~1.7.5 **9999 was the problem fixed in the meantime? Can we close this ticket?
Current version (v1.8.3) is installing systemd service.