Docs cipi.yml Web panel API MCP Guides Compare GitHub Telegram channel
  1. Docs
  2. Server & runtime
  3. Services

Services

Start, stop and inspect the server's services.

Server & runtime

See and control every service Cipi runs. Nginx always reloads gracefully, so restarting it never drops a request.

Commands#

bash
cipi service list [nginx] [--json]
cipi service restart              # everything
cipi service restart nginx        # graceful reload
cipi service restart php          # every PHP-FPM version
cipi service start fail2ban
cipi service stop supervisor      # asks first
cipi service upgrade              # installed vs available versions
cipi service upgrade valkey [--yes]

Service names#

NameService
nginxWeb server
php or php8.6-fpmAll PHP-FPM versions, or one
mariadb, postgresql (pgsql)Databases
valkey-server (redis, valkey)Shared Valkey
supervisorWorkers, Octane, Horizon, Reverb
fail2banBrute-force protection
meilisearch (search), cloudflaredOnly when installed

upgrade all is refused on purpose: patch one service at a time and watch it come back. REST: GET /api/services, POST /api/services/{name}/restart.

When to restart what#

SymptomRestartEffect on visitors
Changed an Nginx setting by handcipi service restart nginxNone: graceful reload
Changed php.ini by handcipi service restart php8.6-fpmA short pause for apps on that version
Workers ignore new codecipi worker restart myapp (one app)None
Database unresponsivecipi service restart mariadbSeconds of errors: last resort

Prefer the narrowest restart: one app's workers before Supervisor, one PHP version before all of them.

Questions#

QuestionAnswer
Does restart nginx drop connections?No. Cipi reloads Nginx gracefully: open requests finish on the old workers.
Why is upgrade all refused?One service at a time lets you see which one misbehaves after an upgrade. Nightly patches are covered by stack upgrades.
Can the panel restart services?Yes, through the API (POST /api/services/{name}/restart). Stopping services stays on the CLI.