Skip to content

Instantly share code, notes, and snippets.

@nikneroz
Last active September 24, 2018 06:52
Show Gist options
  • Save nikneroz/ff8e0ce408698427000ef36eefdff0c0 to your computer and use it in GitHub Desktop.
Save nikneroz/ff8e0ce408698427000ef36eefdff0c0 to your computer and use it in GitHub Desktop.
# /lib/systemd/system/test.service
[Unit]
Description=Phoenix server for test app
After=network.target
[Service]
User=root
Group=root
Restart=on-failure
Environment=HOME=/root/test
ExecStart=/root/test/bin/test foreground
ExecStop=/root/test/bin/test stop
[Install]
WantedBy=multi-user.target
systemctl enable test_emm.service
systemctl daemon-reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment