github.com/grafana/pyroscope@v1.18.0/tools/packaging/pyroscope.service (about)

     1  [Unit]
     2  Description=Pyroscope service
     3  After=network.target
     4  
     5  [Service]
     6  Type=simple
     7  User=pyroscope
     8  WorkingDirectory=/var/lib/pyroscope
     9  ExecStart=/usr/bin/pyroscope -config.file /etc/pyroscope/config.yml
    10  # Give a reasonable amount of time for the server to start up/shut down
    11  TimeoutSec = 120
    12  Restart = on-failure
    13  RestartSec = 2
    14  
    15  [Install]
    16  WantedBy=multi-user.target