github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/tools/packaging/loki.service (about)

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