Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 529188

Summary: mail-filter/sqlgrey - add systemd service files
Product: Gentoo Linux Reporter: Craig Andrews <candrews>
Component: [OLD] ServerAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: candrews, systemd
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=528032
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 448882    

Description Craig Andrews gentoo-dev 2014-11-13 23:17:38 UTC
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
Comment 1 Pacho Ramos gentoo-dev 2015-10-04 08:33:32 UTC
Is running it with "-d" and, then, needing Type=forking needed? How does it work when dropping "-d" option and Type=forking?
Comment 2 Craig Andrews gentoo-dev 2016-06-30 15:49:04 UTC
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