Gentoo doesn't bring systemd service files for sqlgrey. Suggested file sqlgrey.service (which is what Arch uses, see https://github.com/fukawi2/aur-packages/blob/master/sqlgrey/systemd.sqlgrey except gentoo has sqlgrey at /usr/sbin/sqlgrey instead of /usr/bin/sqlgrey): [Unit] Description=Postfix greylisting policy service After=network.target [Service] Type=forking ExecStart=/usr/sbin/sqlgrey -d [Install] WantedBy=multi-user.target Requests for systemd unit files for sqlgrey that I found include: https://bugzilla.novell.com/show_bug.cgi?id=891510 Reproducible: Always
Is running it with "-d" and, then, needing Type=forking needed? How does it work when dropping "-d" option and Type=forking?
Someone added a sqlgrey service to ebuild, as it's there now: https://github.com/gentoo/gentoo/blob/9e9bbd45adc53e7c28e6c909d7ec1ef7714ba186/mail-filter/sqlgrey/files/sqlgrey.service