Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529188 - mail-filter/sqlgrey - add systemd service files
Summary: mail-filter/sqlgrey - add systemd service files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2014-11-13 23:17 UTC by Craig Andrews
Modified: 2016-06-30 15:49 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 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