Skip to content

Instantly share code, notes, and snippets.

@nikneroz

nikneroz/sh

Last active Sep 24, 2018
Embed
What would you like to do?
# /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