[Unit] Description=Loki service After=network.target [Service] Type=simple User=loki ExecStart=/usr/bin/loki -config.file /etc/loki/config.yml # Give a reasonable amount of time for the server to start up/shut down TimeoutSec = 120 Restart = on-failure RestartSec = 2 [Install] WantedBy=multi-user.target