blob: e34d61ae4e32dab2319c0f97e0dfeed14640aef8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
[Unit]
Description=Thanos for Prometheus
Requires=network-online.target
After=network-online.target
[Service]
User=thanos
Group=thanos
Restart=on-failure
EnvironmentFile=-/etc/thanos/%i.conf
ExecStart=/usr/bin/thanos %i $THANOS_ARGS $CLUSTER_ARGS
ExecReload=/bin/kill -HUP $MAINPID
NoNewPrivileges=true
ProtectHome=true
ProtectSystem=strict
ReadWritePaths=/var/lib/prometheus
ConfigurationDirectory=/etc/thanos
StateDirectory=/var/lib/thanos
[Install]
WantedBy=multi-user.target
|