Add psagentia.service file for systemd service management and update DEPLOY.md with new deployment paths, user service option (without sudo), and improved service management commands for both system and user-level installations.
18 lines
455 B
Desktop File
18 lines
455 B
Desktop File
[Unit]
|
|
Description=PsAgentIA - Personal Agent IA Conversacional
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=marco
|
|
WorkingDirectory=/home/marco/PsAgentIA/app
|
|
Environment="PATH=/home/marco/PsAgentIA/app/venv/bin:/usr/local/bin:/usr/bin:/bin"
|
|
ExecStart=/home/marco/PsAgentIA/app/venv/bin/python3 /home/marco/PsAgentIA/app/psagentia_agent.py
|
|
Restart=always
|
|
RestartSec=10
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|