summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-05-22 16:10:59 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-05-22 16:10:59 +0300
commit866f15ef6b42ecbc38f61eab47ab606d854aa5c9 (patch)
tree8e2b63bdf81946a403c1b4bed14348c01ed39a78
parentd9402b638d0e728e142083e546d543d73b672db8 (diff)
inverterd.service: use EnvironmentFile to set options
-rw-r--r--systemd/inverterd.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/systemd/inverterd.service b/systemd/inverterd.service
index 0718be7..a37870b 100644
--- a/systemd/inverterd.service
+++ b/systemd/inverterd.service
@@ -3,8 +3,9 @@ Description=inverterd
After=network.target
[Service]
+EnvironmentFile=/etc/default/inverterd
Restart=on-failure
-ExecStart=/usr/local/bin/inverterd --host 0.0.0.0
+ExecStart=/usr/local/bin/inverterd $PARAMS
[Install]
WantedBy=multi-user.target