openvibers/openvibe.mail Commits

Stalwart's Slice= in [Service], where systemd reads it (#6)

OP OpenVibers committed 6 days ago · f958886241 · 1 file, +2 −1

systemd ignored it in [Unit] ('Unknown key Slice in section [Unit]', at the first start on the host), so the slice's
limits did not apply; the unit's own MemoryMax=1G still did.

Changes

ddiff --git a/deploy/systemd/openvibe-stalwart.service b/deploy/systemd/openvibe-stalwart.service
iindex 2f37d4a..fcd83f7 100644
---- a/deploy/systemd/openvibe-stalwart.service
++++ b/deploy/systemd/openvibe-stalwart.service
@@@ -13,9 +13,10 @@ Description=OpenVibe.Mail Stalwart (receive-only SMTP; JMAP/IMAP on loopback)
Documentation=https://github.com/OpenVibers/OpenVibe.Mail
After=network-online.target postgresql.service
Wants=network-online.target
--Slice=openvibe-stalwart.slice
[Service]
++# Slice= belongs here, not in [Unit] (systemd ignored it there: found at the install, 11-07).
++Slice=openvibe-stalwart.slice
Type=simple
User=openvibe
Group=openvibe