diff options
| author | Drew DeVault <sir@cmpwn.com> | 2019-12-04 10:42:14 -0500 |
|---|---|---|
| committer | Milan P. Stanić <mps@arvanta.net> | 2019-12-04 17:21:34 +0100 |
| commit | ad8945f4666db9bec1c71111fafb5fb49f406597 (patch) | |
| tree | 90d5eb0c0d05a65387afae10ade6cc1f9e675e01 /community/prometheus/prometheus.initd | |
| parent | 1611579fab456291d71da8820f64623a40c459db (diff) | |
| download | aports-ad8945f4666db9bec1c71111fafb5fb49f406597.tar.bz2 aports-ad8945f4666db9bec1c71111fafb5fb49f406597.tar.xz | |
community/prometheus: new aport
Diffstat (limited to 'community/prometheus/prometheus.initd')
| -rw-r--r-- | community/prometheus/prometheus.initd | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/community/prometheus/prometheus.initd b/community/prometheus/prometheus.initd new file mode 100644 index 0000000000..92b5ba56b7 --- /dev/null +++ b/community/prometheus/prometheus.initd @@ -0,0 +1,16 @@ +#!/sbin/openrc-run +name="prometheus" +description="prometheus monitoring system & time series database" +supervisor=supervise-daemon +command=/usr/bin/prometheus +command_args="--config.file=$config_file \ + --storage.tsdb.path=$storage_path" +command_user="prometheus:prometheus" + +start_pre() { + [ -n "$output_log" ] && checkpath -f "$output_log" \ + -m 644 -o prometheus:prometheus + [ -n "$error_log" ] && checkpath -f "$error_log" \ + -m 644 -o prometheus:prometheus + checkpath -d "$prometheus_storage_path" -m 755 -o prometheus:prometheus +} |
