Skip to content

Instantly share code, notes, and snippets.

@minhajuddin
Forked from edevil/phoenix-app.service
Last active June 26, 2016 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minhajuddin/bd78e59b16b5f1ba68dad7ac82d49619 to your computer and use it in GitHub Desktop.
Save minhajuddin/bd78e59b16b5f1ba68dad7ac82d49619 to your computer and use it in GitHub Desktop.
systemd service for phoenix framework release (exrm)
# Phoenix Framework - A productive web framework that does not compromise speed and maintainability
[Unit]
Description=Phoenix Framework ISControl Application
After=network.target
[Service]
Type=simple
User=deployer
RemainAfterExit=yes
# Environment=MIX_ENV=prod PORT=4000
WorkingDirectory=/srv/apps/iscontrol/
ExecStart=/bin/bash -lc 'source /opt/www/webmonitor/env && RELX_REPLACE_OS_VARS=true /opt/www/webmonitor/bin/webmonitor start'
ExecStop=/srv/apps/iscontrol/bin/iscontrol stop
Restart=on-failure
TimeoutSec=300
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment