This repository has been archived on 2026-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
anvillm/services/systemd/anvillm-user.service

26 lines
496 B
SYSTEMD

[Unit]
Description=AnviLLM Backend Server (User Service)
Documentation=https://github.com/lkn/anvillm
After=default.target
[Service]
Type=simple
WorkingDirectory=%h
# Environment is inherited from user session
# But we can override if needed:
# Environment="PATH=%h/bin:/usr/local/bin:/usr/bin:/bin"
# Start anvillm
ExecStart=%h/bin/anvillm start
# Cleanup on stop
ExecStopPost=/bin/rm -f /tmp/anvillm.pid
# Restart policy
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=default.target