Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit f8f011e

Browse files
bartoszcisekBartosz Cisek
and
Bartosz Cisek
authored
Wait for local file systems before starting prometheus (#317)
In case prometheus data is stored on mounted volume, wait on it before starting process. This change also makes sure that prometheus is stopped to allow safe unmount volume during shutdown. [patch] release Co-authored-by: Bartosz Cisek <bartosz.cisek@ebury.com>
1 parent 3c94c81 commit f8f011e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/prometheus.service.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
[Unit]
44
Description=Prometheus
55
After=network-online.target
6+
Requires=local-fs.target
7+
After=local-fs.target
68

79
[Service]
810
Type=simple

0 commit comments

Comments
 (0)