Skip to main content

orphelix startup

Configure Orphelix to start automatically when your system boots.

Usage

Example Output

How It Works

The startup command:
  1. Detects init system - Identifies your OS init system (launchd on macOS, systemd on Linux)
  2. Generates startup script - Creates system service script
  3. Installs service - Registers service with OS (requires sudo)
  4. Saves process list - Saves current pm2 processes to restore on boot
  5. 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

This command requires sudo once to install the system service. Your password will be prompted.

Platform Support

Verify Auto-Startup

After configuring, restart your computer to test:
Should show online without manual start.

Disable Auto-Startup

To disable auto-startup:
See unstartup command for details.

Troubleshooting

Permission Denied

Solution: Ensure you enter sudo password when prompted.

Service Not Starting on Boot

Check pm2 startup configuration:
Verify saved process list:

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)

See Also

Unstartup

Disable auto-startup

PM2 Documentation

Learn more about pm2 startup