Skip to content

Instantly share code, notes, and snippets.

@JonathanPorta
Created January 26, 2018 08:22
Show Gist options
  • Save JonathanPorta/af1d8d1a7255d0765ac1b4c8f7117e63 to your computer and use it in GitHub Desktop.
Save JonathanPorta/af1d8d1a7255d0765ac1b4c8f7117e63 to your computer and use it in GitHub Desktop.
[Unit]
Description=Ensure that the grafana process is running
After=network-online.target
[Service]
User=grafana
Group=grafana
Restart=always
WorkingDirectory=/opt/grafana/
ExecStart=/opt/grafana/bin/grafana-server web
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment