summarylogtreecommitdiffstats
path: root/promscale.service
diff options
context:
space:
mode:
Diffstat (limited to 'promscale.service')
-rw-r--r--promscale.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/promscale.service b/promscale.service
new file mode 100644
index 000000000000..bdafd1e3c828
--- /dev/null
+++ b/promscale.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Promscale service
+Documentation=https://github.com/timescale/promscale
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+User=promscale
+Group=promscale
+Restart=on-failure
+EnvironmentFile=-/etc/conf.d/promscale
+ExecStart=/usr/bin/promscale $PROMSCALE_ARGS
+ExecReload=/bin/kill -HUP $MAINPID
+NoNewPrivileges=true
+ProtectSystem=true
+
+[Install]
+WantedBy=multi-user.target
+