<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 9, 2018 at 8:11 PM, Goran <span dir="ltr"><<a href="mailto:sendmailtogoran@gmail.com" target="_blank">sendmailtogoran@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I did as you told. What I can say is that the user/group directive are<br>
the problem.<br>
<br>
With this config it works:<br>
<br></blockquote><div><br></div><div><br></div><div>Now we're getting somehwere :D</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
[Unit]<br>
Description=Grafana service<br>
After=network.target<br>
<br>
[Service]<br>
# User=grafana<br>
# Group=grafana<br>
# WorkingDirectory=/usr/share/<wbr>grafana<br>
# ExecStart=/usr/bin/grafana-<wbr>server -config=/etc/grafana.ini<br>
ExecStart=/usr/bin/runuser -s /bin/bash -g grafana -l grafana -c<br>
'grafana-server -config=/etc/grafana.ini -homepath /usr/share/grafana'<br>
LimitNOFILE=10000<br>
TimeoutStopSec=20<br>
SuccessExitStatus=0 2<br>
<br>
[Install]<br>
WantedBy=multi-user.target<br>
<br>
What I don't understand is why the user/group directive are not<br>
accepted and quitted with error<br>
<br>
Aug 09 13:06:10 monitor systemd[25843]: grafana.service: Failed to<br>
<span class="gmail-">determine user credentials: No such process<br>
</span>Aug 09 13:06:10 monitor systemd[25843]: grafana.service: Failed at<br>
step USER spawning /usr/bin/runuser: No such process<br>
<br></blockquote><div><br></div><div><br></div><div>This looks promising: "<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">/usr/bin/runuser: No such process"</span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Try something like this:</span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><div>[Service]</div><div>User=grafana</div><div>Group=grafana</div><div>ExecStart=/bin/bash -c 'grafana-server -config=/etc/grafana.ini -homepath /usr/share/grafana'</div><div><br></div><div>-- </div><div>Fajar</div></span></div></div></div></div>