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:
Jeena 2026-03-11 14:02:30 +00:00
parent d5a3528cde
commit b2646222f8
2 changed files with 15 additions and 19 deletions

View file

@ -0,0 +1,17 @@
[Unit]
Description=Matrix to Paperless-ngx ingest bot
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=%h/matrix-paperless-ingest
EnvironmentFile=%h/matrix-paperless-ingest/.env
ExecStart=%h/.local/bin/uv run --no-sync python ingest.py
Restart=on-failure
RestartSec=10
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=default.target