Skip to content

Instantly share code, notes, and snippets.

@actionjack
Forked from biinari/mailcatcher.conf
Created October 22, 2013 12:35
Show Gist options
  • Save actionjack/7099894 to your computer and use it in GitHub Desktop.
Save actionjack/7099894 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