Skip to main content

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

Control how many instances run simultaneously.
Time to wait before considering process successfully started.
Graceful shutdown timeout.

Working Directory

# Common working directory examples
/home/loupp/                    # User home directory
/home/loupp/my-site/        # Project-specific directory

Common Daemon Examples

Laravel Queue Workers

php /home/loupp/your-site/artisan queue:work --sleep=3 --tries=3
node /home/loupp/app/server.js
python3 /home/loupp/scripts/monitor.py

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 the daemon process(es) with current configuration.
Access daemon execution logs and output.
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

  • Check command syntax and paths
  • Verify user permissions
  • Check working directory access
  • Review error logs
  • Check for resource constraints
  • Review application errors
  • Verify configuration settings
  • Monitor memory and CPU usage
  • Check for memory leaks
  • Review process count settings
I