Create a gist now

Instantly share code, notes, and snippets.

systemd unit file for imapfilter
[Unit]
Description=Imapfilter
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/imapfilter -dc /home/%I/.imapfilter/config.lua
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
User=%I
[Install]
WantedBy=multi-user.target
@pmatos
pmatos commented Aug 19, 2015

Is there a reason for calling the file imapfilter@.service (with an @ char)?

@foudfou
foudfou commented Dec 27, 2015

@pmatos these are template unit files (man systemd.unit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment