Skip to content

Instantly share code, notes, and snippets.

@cedricpim
Created January 18, 2016 22:18
Show Gist options
  • Save cedricpim/622778f29a8ae1157052 to your computer and use it in GitHub Desktop.
Save cedricpim/622778f29a8ae1157052 to your computer and use it in GitHub Desktop.
Mailcatcher Systemd Service (with rbenv and vagrant)
# /usr/lib/systemd/system/mailcatcher.service
[Unit]
Description=MailCatcher Service
After=network.service vagrant.mount
[Service]
Type=simple
ExecStart=/home/vagrant/.rbenv/shims/mailcatcher --ip 0.0.0.0 --foreground
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment