Overview
PROPPR services run as systemd units for automatic startup, restart on failure, and centralized management.Service Configuration
Bot Services
Create systemd service files in/etc/systemd/system/ for each bot:
Data Services
Grading Services
Enable and Start Services
Service Management Commands
Check Service Status
Start/Stop/Restart Services
View Service Logs
Deployment Workflow
Thepush_and_restart.sh script automates deployment from local to production:
scripts/deploy/push_and_restart.sh
Deploy Specific Module
- Team Bot
- All Services
Troubleshooting
Service fails to start
Service fails to start
Check the service logs:Common issues:
- Missing Python dependencies
- Incorrect
PYTHONPATH - MongoDB not running
- Missing credentials in
.env
Service keeps restarting
Service keeps restarting
Check for Python exceptions in logs:Increase
RestartSec in service file to avoid rapid restart loops.Cannot connect to MongoDB
Cannot connect to MongoDB
Verify MongoDB is running:Check MongoDB connection string in
/opt/proppr/.env.Permission denied errors
Permission denied errors
Ensure service user has read access:
Next Steps
Monitor Services
Set up comprehensive monitoring and health checks