use the same dir
This commit is contained in:
parent
2750843746
commit
cc4daf6346
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ case $1 in
|
||||||
start)
|
start)
|
||||||
rm -f "${pid}"
|
rm -f "${pid}"
|
||||||
|
|
||||||
chown prometheus:prometheus /var/lib/prometheus/data
|
chown prometheus:prometheus "${var}"
|
||||||
chmod -R u=rwX,g=rX,o= /var/lib/prometheus
|
chmod -R u=rwX,g=rX,o= "${var}"
|
||||||
|
|
||||||
daemonize -p "${pid}" -l "${pid}" -u prometheus -c "${var}" \
|
daemonize -p "${pid}" -l "${pid}" -u prometheus -c "${var}" \
|
||||||
/usr/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path="${var}/data"
|
/usr/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path="${var}/data"
|
||||||
|
|
Loading…
Reference in a new issue