service: Switch to systemd user service
Run as the current user instead of a dedicated system user, using systemd user service in ~/.config/systemd/user/. This avoids needing root for setup and keeps uv and the project in the user's home directory. Rename service file to matrix-paperless-ingest.service.
This commit is contained in:
parent
d5a3528cde
commit
b2646222f8
2 changed files with 15 additions and 19 deletions
|
|
@ -1,18 +0,0 @@
|
|||
[Unit]
|
||||
Description=Matrix to Paperless-ngx ingest bot
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=matrix-paperless-ingest
|
||||
WorkingDirectory=/opt/matrix-paperless-ingest
|
||||
EnvironmentFile=/opt/matrix-paperless-ingest/.env
|
||||
ExecStart=uv run --no-sync python ingest.py
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue