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