summarylogtreecommitdiffstats
path: root/systemd.service
diff options
context:
space:
mode:
authorGeorge Rawlinson2022-06-12 20:31:06 +1200
committerGeorge Rawlinson2022-06-12 20:31:06 +1200
commit7fbed327de30d8bb214548c522dc02b004b11732 (patch)
treeda34ce393bf4599f4090005431055cb5577f094b /systemd.service
parent40bad481f27a87f864b06bdd0b321beabaf1e39b (diff)
downloadaur-7fbed327de30d8bb214548c522dc02b004b11732.tar.gz
import from community
Diffstat (limited to 'systemd.service')
-rw-r--r--systemd.service11
1 files changed, 6 insertions, 5 deletions
diff --git a/systemd.service b/systemd.service
index e1c5aaf62730..c1123ad08d69 100644
--- a/systemd.service
+++ b/systemd.service
@@ -1,5 +1,5 @@
[Unit]
-Description=Promscale service
+Description=TimescaleDB Promscale Service
Documentation=https://github.com/timescale/promscale
Requires=network-online.target
After=network-online.target
@@ -7,13 +7,14 @@ After=network-online.target
[Service]
User=promscale
Group=promscale
+EnvironmentFile=-/etc/promscale.conf
+ExecStart=/usr/bin/promscale $OPTIONS
Restart=on-failure
RestartSec=5s
-# If PROMSCALE_ARGS is required, it should be applied using a drop-in
-# systemd file. See `man 5 systemd.unit` for details.
-ExecStart=/usr/bin/promscale $PROMSCALE_ARGS
-ExecReload=/bin/kill -HUP $MAINPID
+KillMode=mixed
+KillSignal=SIGINT
+# Hardening
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true