Skip to content

Instantly share code, notes, and snippets.

@danypr92
Last active May 21, 2018 12:09
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 danypr92/e73984089cc3053835af54407e7b1333 to your computer and use it in GitHub Desktop.
Save danypr92/e73984089cc3053835af54407e7b1333 to your computer and use it in GitHub Desktop.
Systemd Unit for ARA - https://github.com/openstack/ara
# Then copy this service in the `/etc/systemd/system/ara.local.service`
# Run your service with:
# # systemctl start ara.local.service
# Visit your ARA app in http://127.0.0.1:9191/
# -----------------------------------
# ARA systemd service
[Unit]
Description=ARA server
[Service]
ExecStart=/home/<USER>/.virtualenvs/ara/bin/ara-manage runserver
# Execute service like user
User=<USER>
# Restart service after all crashes but wait 5 secontds between restarts.
Restart=always
RestartSec=5
# output stdout and stderr to syslog. (/var/log/messages)
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=ara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment