orphelix startup
Configure Orphelix to start automatically when your system boots.Usage
Example Output
How It Works
The startup command:- Detects init system - Identifies your OS init system (launchd on macOS, systemd on Linux)
- Generates startup script - Creates system service script
- Installs service - Registers service with OS (requires sudo)
- Saves process list - Saves current pm2 processes to restore on boot
- Enables service - Enables automatic start
What Gets Started
All currently running Orphelix instances and workers:- Main application (
orphelix) - Notification worker (
orphelix-notifications) - Named instances (if using multi-instance setup)
Sudo Requirement
Platform Support
| Platform | Init System | Status |
|---|---|---|
| macOS | launchd | ✅ Supported |
| Linux (Ubuntu/Debian) | systemd | ✅ Supported |
| Linux (CentOS/RHEL) | systemd | ✅ Supported |
| Windows | - | ❌ Not supported |
Verify Auto-Startup
After configuring, restart your computer to test:online without manual start.
Disable Auto-Startup
To disable auto-startup:Troubleshooting
Permission Denied
Service Not Starting on Boot
Check pm2 startup configuration:Multiple Users
If running Orphelix as different users, configure startup for each user:Manual Configuration
If automatic setup fails, configure manually:macOS (launchd)
Linux (systemd)
Related Commands
See Also
Unstartup
Disable auto-startup
PM2 Documentation
Learn more about pm2 startup