Skip to content

Instantly share code, notes, and snippets.

@sa7dse
Last active July 11, 2017 10:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sa7dse/4046045 to your computer and use it in GitHub Desktop.
Save sa7dse/4046045 to your computer and use it in GitHub Desktop.
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
Copy link

pmatos commented Aug 19, 2015

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

@foudfou
Copy link

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