diff options
Diffstat (limited to 'thanos.service')
-rw-r--r-- | thanos.service | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/thanos.service b/thanos.service new file mode 100644 index 000000000000..c8616b769e14 --- /dev/null +++ b/thanos.service @@ -0,0 +1,18 @@ +[Unit] +Description=Thanos for Prometheus +Requires=network-online.target +After=network-online.target + +[Service] +User=thanos +Group=thanos +Restart=on-failure +EnvironmentFile=-/etc/conf.d/thanos +ExecStart=/usr/bin/thanos $THANOS_ARGS $CLUSTER_ARGS +ExecReload=/bin/kill -HUP $MAINPID +NoNewPrivileges=true +ProtectHome=true +ProtectSystem=strict + +[Install] +WantedBy=multi-user.target |