From fb67ec99cc3d07a8376520ad54c6b3dafdcb0721 Mon Sep 17 00:00:00 2001 From: andig Date: Sat, 25 Apr 2020 18:25:58 +0200 Subject: [PATCH] Add systemd description --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e5fdc798d..b63f431d8 100644 --- a/README.md +++ b/README.md @@ -45,9 +45,22 @@ EVCC is provided as binary executable file and docker image. Download the file f evcc -h -or to run EVCC with given config file and UI on port 7070 using Docker: +Use the following `systemd` unit description to configure EVCC as service (put into `/etc/systemd/system/evcc.service`): - docker run -v $(pwd)/evcc.dist.yaml:/etc/evcc.yaml -p 7070:7070 andig/evcc -h + [Unit] + Description=evcc + After=syslog.target + [Service] + ExecStart=/usr/local/bin/evcc --log error + Restart=always + [Install] + WantedBy=multi-user.target + +EVCC can also be run using Docker. Here's and example with given config file and UI on port 7070: + +```sh +docker run -v $(pwd)/evcc.dist.yaml:/etc/evcc.yaml -p 7070:7070 andig/evcc -h +``` To build EVCC from source, [Go](2) 1.13 is required: