mirror of
https://git.cloudron.io/cloudron/prometheus-server-app.git
synced 2024-06-03 05:49:38 +00:00
12 lines
353 B
Bash
12 lines
353 B
Bash
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
echo "=> Starting apache"
|
|
APACHE_CONFDIR="" source /etc/apache2/envvars
|
|
rm -f "${APACHE_PID_FILE}"
|
|
/usr/sbin/apache2 -DFOREGROUND &
|
|
|
|
echo "=> Starting Prometheus"
|
|
cd /usr/local/bin/prometheus
|
|
exec /usr/local/bin/gosu cloudron:cloudron ./prometheus --config.file=/app/data/config/prometheus.yml --storage.tsdb.path=/app/data/runtime |