From bd0df8d3fc2354e2abe5408505ef63444922fd5c Mon Sep 17 00:00:00 2001 From: reivilibre <38398653+reivilibre@users.noreply.github.com> Date: Thu, 11 Mar 2021 23:09:15 +0000 Subject: [PATCH] Fix issue in suggested systemd unit: Etebase runs as root! --- Run-uvicorn-at-boot.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Run-uvicorn-at-boot.md b/Run-uvicorn-at-boot.md index d092a40..9189173 100644 --- a/Run-uvicorn-at-boot.md +++ b/Run-uvicorn-at-boot.md @@ -3,7 +3,7 @@ Instead, you should have `systemd` automatically start it at boot for you. We can have `systemd` handle lauching uvicorn by creating a unit file for it. Create a new file called `etebase_server.service` and paste in the following. -Don't forget to set the correct path to your installation and to your venv. +Don't forget to set the correct path to your installation and to your venv, as well as the correct user and group. ``` @@ -11,6 +11,8 @@ Don't forget to set the correct path to your installation and to your venv. Description=Execute the etebase server. [Service] +User=etebase +Group=etebase WorkingDirectory=/path/to/etebase ExecStart=/path/to/etebase/venv/bin/uvicorn etebase_server.asgi:application --uds /tmp/etebase_server.sock