Overview
Server daemons are background processes managed by supervisor. Loupp provides an interface for managing these processes with automatic restart capabilities.Creating Daemons
1
Access daemon management
Navigate to your server dashboard and click on the “Daemons” tab.
2
Configure daemon details
- Directory: Working directory (default:
/home/loupp/
) - Command: The command to run as a daemon
- User: loupp or root
- No of Process: Number of instances to run
- Start Seconds: Time to wait before considering process started
- Stop Seconds: Time to wait for graceful shutdown
3
Create daemon
Click “Create daemon” to create and start the daemon.
Configuration Options
Process Management
No of Process
No of Process
Control how many instances run simultaneously.
Start Seconds
Start Seconds
Time to wait before considering process successfully started.
Stop Seconds
Stop Seconds
Graceful shutdown timeout.
Working Directory
Common Daemon Examples
Laravel Queue Workers
Basic Queue Worker
Basic Queue Worker
Node.js Application
Node.js Application
Python Script
Python Script
Daemon Management
Interface
The daemon interface displays:- Name: Daemon identifier with status indicator
- User: User account running the daemon
- Command: The command being executed
- Actions: Restart, View Logs, Delete
Daemon Actions
Restart
Restart
Restart the daemon process(es) with current configuration.
View Logs
View Logs
Access daemon execution logs and output.
Delete
Delete
Remove the daemon configuration and stop all processes.
Process Monitoring
Health Monitoring
- Process Status: Check if processes are running
- Log Access: View execution logs for debugging
Status Indicators
- Green dot: Daemon is active and running
- Red dot: Daemon is inactive or has errors
Log Management
Accessing Daemon Logs
1
Access logs
Click “View Logs” on any daemon to access its execution logs.
2
View log content
Review the log output including stdout, stderr, and process status.
3
Refresh logs
Use the “Refresh Logs” button to get the latest log entries.
Performance Optimization
Resource Management
- Balance process count between performance and resource usage
- Set appropriate memory limits for long-running processes
Troubleshooting
Common Issues
Process Not Starting
Process Not Starting
- Check command syntax and paths
- Verify user permissions
- Check working directory access
- Review error logs
Frequent Restarts
Frequent Restarts
- Check for resource constraints
- Review application errors
- Verify configuration settings
High Resource Usage
High Resource Usage
- Monitor memory and CPU usage
- Check for memory leaks
- Review process count settings