rmilter
rmilter copied to clipboard
rmilter.service start fails (233/RUNTIME_DIRECTORY) on debian Jessie w/ systemd
I follow the installation guide recommended on https://rspamd.com/doc/quickstart.html. I'm using repository from http://rspamd.com/apt-stable/.
apt-get install rmilter
systemctl status rmilter.socket
# ● rmilter.socket - Another sendmail milter for different mail checks
# Loaded: loaded (/lib/systemd/system/rmilter.socket; enabled)
# Active: active (listening) since Mon 2016-07-18 18:49:22 CEST; 1 day 23h ago
# Listen: /var/run/rmilter/rmilter.sock (Stream)
systemctl status rmilter.service
# ● rmilter.service - Another sendmail milter for different mail checks
# Loaded: loaded (/lib/systemd/system/rmilter.service; disabled)
# Active: inactive (dead)
systemctl start rmilter.service
systemctl status rmilter.service -l
# ● rmilter.service - Another sendmail milter for different mail checks
# Loaded: loaded (/lib/systemd/system/rmilter.service; disabled)
# Active: failed (Result: exit-code) since Wed 2016-07-20 17:56:05 CEST; 1min 31s ago
# Process: 24168 ExecStart=/usr/sbin/rmilter -c /etc/rmilter.conf -n (code=exited, status=233/RUNTIME_DIRECTORY)
# Main PID: 24168 (code=exited, status=233/RUNTIME_DIRECTORY)
# Jul 20 17:56:05 ober.noekeon.org systemd[24168]: Failed at step RUNTIME_DIRECTORY spawning /usr/sbin/rmilter: File exists
# Jul 20 17:56:05 ober.noekeon.org systemd[1]: rmilter.service: main process exited, code=exited, status=233/RUNTIME_DIRECTORY
# Jul 20 17:56:05 ober.noekeon.org systemd[1]: Unit rmilter.service entered failed state.
(I copy all the stuff to ease googling by others).
Basically the fix is simply to import commit 3fd106a, ie. add in rmilter.service:
[Service]
...
Restart=always
Strangely enough, none of the version of rmilter on the repository (curently 1.8.6 in apt-stable/ and 1.8.7 in apt/) contains that line.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.