use the same dir

This commit is contained in:
f 2021-02-02 21:05:01 -03:00
parent 2750843746
commit cc4daf6346

View file

@ -14,8 +14,8 @@ case $1 in
start)
rm -f "${pid}"
chown prometheus:prometheus /var/lib/prometheus/data
chmod -R u=rwX,g=rX,o= /var/lib/prometheus
chown prometheus:prometheus "${var}"
chmod -R u=rwX,g=rX,o= "${var}"
daemonize -p "${pid}" -l "${pid}" -u prometheus -c "${var}" \
/usr/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path="${var}/data"