Running Grafana as a Daemon
If you've installed Grafana using the Ubuntu/Debian package manager, everything is already installed - you simply need to enable the service.
Type the following commands…
sudo systemctl daemon-reload sudo systemctl start grafana-server sudo systemctl enable grafana-server
This both enables the Grafana service, and sets it to start up as a background daemon automatically on system startup.