Skip to content

Instantly share code, notes, and snippets.

@ducksoupdev
Forked from biinari/mailcatcher.conf
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save ducksoupdev/e40bc7b1793f3c2613be to your computer and use it in GitHub Desktop.

Select an option

Save ducksoupdev/e40bc7b1793f3c2613be to your computer and use it in GitHub Desktop.
description "Mailcatcher"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
pre-start script
bash << "EOF"
mkdir -p /var/log/mailcatcher
chown -R vagrant /var/log/mailcatcher
EOF
end script
exec su - vagrant -c 'mailcatcher --http-ip=0.0.0.0 &>>/var/log/mailcatcher/mailcatcher.log'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment