summarylogtreecommitdiffstats
path: root/adsbexchange-stats.service
diff options
context:
space:
mode:
Diffstat (limited to 'adsbexchange-stats.service')
-rw-r--r--adsbexchange-stats.service10
1 files changed, 6 insertions, 4 deletions
diff --git a/adsbexchange-stats.service b/adsbexchange-stats.service
index 1fca3a95cf5b..01aa1acdfdbf 100644
--- a/adsbexchange-stats.service
+++ b/adsbexchange-stats.service
@@ -1,15 +1,17 @@
[Unit]
Description=ADSBexchange Stats
+Wants=network.target readsb.service
+After=network.target readsb.service
[Service]
Type=simple
+User=readsb
+RuntimeDirectory=adsbexchange-stats
+RuntimeDirectoryMode=0755
+WorkingDirectory=/run/adsbexchange-stats
ExecStart=/usr/bin/adsbexchange-stats
-WorkingDirectory=/var/run
-StandardOutput=inherit
-StandardError=inherit
Restart=always
RestartSec=30
-User=readsb
[Install]
WantedBy=multi-user.target