Skip to content

Managing Instances

Olivier van Helden edited this page Nov 23, 2026 · 5 revisions

opensim status lists enabled instances, whether they are running, and a summary.

opensim status
opensim start
opensim stop
opensim restart

With no target, start/stop/restart apply to the enabled instances. Give grid or simulator names to target specific instances. --simulators includes the simulators belonging to named grids; use now with stop or restart to skip the user warning.

opensim start my-grid
opensim stop my-grid --simulators
opensim restart now my-grid

The service

The instances run under one service, opensim.service, as the sites of a web server run under it. It starts at boot once the network and the database are up, and starts the enabled instances in order (opensim start). sudo systemctl stop opensim, and a shutdown or a reboot, stop them all in order (opensim stop now): the simulators, then their grid.

Whoever starts an instance (opensim start in a terminal, the engine API, the site), it is the service's: the service starts it, and it stops with the service. When the service does not run, opensim start says so and starts the instance on its own, outside it. Start the service then:

sudo systemctl start opensim
sudo systemctl status opensim

Installing or upgrading the packages starts the service when it is enabled and stopped, and never restarts it: the running grids stay up.

Enable or disable an instance without starting or stopping it immediately:

opensim disable my-grid.welcome
opensim enable my-grid.welcome

Grid services can be enabled or disabled separately:

opensim enable my-grid search
opensim disable my-grid profiles
opensim enable my-grid economy gloebit

Attach to a running instance console with opensim console INSTANCE. For example:

opensim console my-grid.welcome

Press Ctrl-A, then D, to detach from a screen session while leaving it running. Use opensim COMMAND --help for exact command syntax.

Web services

opensim web my-grid show
opensim web my-grid check
opensim web my-grid snippet caddy

show lists configured web services, check checks their URLs, and snippet prints configuration for Caddy, Nginx, or Apache. A snippet is printed for review; it is not installed automatically.

Find ports or region locations

opensim next port 9000 10
opensim next my-grid location 1000,1000 4

The command uses the same allocation rules as setup. Repeat -e VALUE to exclude a port or location.

Prepare user cleanup files

opensim ban my-grid "First Last" --output ./review

This prepares user information and SQL statements for review. It does not change the databases.

Clone this wiki locally