mirror of
https://github.com/etesync/server
synced 2024-11-22 08:48:07 +00:00
Fix issue in suggested systemd unit: Etebase runs as root!
parent
d050376dd9
commit
bd0df8d3fc
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user