[app-admin/loki] interim version, not really tested.
This commit is contained in:
5
app-admin/loki/files/loki.confd
Normal file
5
app-admin/loki/files/loki.confd
Normal file
@@ -0,0 +1,5 @@
|
||||
# The loki config file
|
||||
LOKI_CONF="/etc/loki/loki-local-config.yaml"
|
||||
|
||||
# Add any extra options to pass to loki to this setting.
|
||||
#LOKI_OPTS=""
|
||||
11
app-admin/loki/files/loki.initd
Normal file
11
app-admin/loki/files/loki.initd
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
configfile="${LOKI_CONF:-/etc/loki/loki-local-config.yaml}"
|
||||
|
||||
command=/usr/bin/loki
|
||||
command_args="-config.file=${configfile}
|
||||
${LOKI_OPTS}"
|
||||
command_background=yes
|
||||
command_user=loki:grafana
|
||||
make_pidfile=yes
|
||||
pidfile=/var/run/loki.pid
|
||||
17
app-admin/loki/files/loki.service
Normal file
17
app-admin/loki/files/loki.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Loki
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=loki
|
||||
Group=grafana
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
EnvironmentFile=/etc/conf.d/loki
|
||||
Environment=LOKI_CONF=/etc/loki/loki-local-config.yaml
|
||||
ExecStart=/usr/bin/loki -config.file=${LOKI_CONF} ${LOKI_OPTS}
|
||||
PIDFile=/run/loki.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user