Skip to content
WIP

This guide is a work in progress. Barry is also a work in progress.

barry service

See and control this instance’s services.

barry service [options] [command]
Subcommand Description
status Show services (all, or the named ones or bags): state, port, health. Non-zero when one needs attention.
list List declared services and their management state.
add Register a service (disabled unless already enabled); does not start it.
remove Unregister a service and remember the removal; stops it but keeps its software and data.
enable Enable a service’s launch at next login/boot; does not start it unless –now.
disable Disable a service’s launch at next login/boot; keeps it running unless –now.
run Run one prepared service in the foreground.
url Print where a service listens, for scripts.
start Start named services or bags; all starts enabled, registered user services that are not running.
stop Stop named services or bags; all stops running, enabled user services.
restart Restart named services or bags; all restarts running, enabled user services except apps.
logs Show a service’s logs.
port Move a service to another port, and wait until every route that targets it follows.

Show services (all, or the named ones or bags): state, port, health. Non-zero when one needs attention.

barry service status [options] [services...]
Argument Required
services... Optional
Option Description
--json Print service management status as JSON, for scripts.

List declared services and their management state.

barry service list [options]
Option Description
--json

Register a service (disabled unless already enabled); does not start it.

barry service add [options] <service>
Argument Required
service Required
Option Description
--now Also start or stop now.

Unregister a service and remember the removal; stops it but keeps its software and data.

barry service remove [options] <service>
Argument Required
service Required
Option Description
--now Also start or stop now.

Enable a service’s launch at next login/boot; does not start it unless –now.

barry service enable [options] <service>
Argument Required
service Required
Option Description
--now Also start or stop now.

Disable a service’s launch at next login/boot; keeps it running unless –now.

barry service disable [options] <service>
Argument Required
service Required
Option Description
--now Also start or stop now.

Run one prepared service in the foreground.

barry service run [options] <service>
Argument Required
service Required

Print where a service listens, for scripts.

barry service url [options] <service>
Argument Required
service Required

Start named services or bags; all starts enabled, registered user services that are not running.

barry service start [options] [services...]
Argument Required
services... Optional

Stop named services or bags; all stops running, enabled user services.

barry service stop [options] [services...]
Argument Required
services... Optional

Restart named services or bags; all restarts running, enabled user services except apps.

barry service restart [options] [services...]
Argument Required
services... Optional
Option Description
--dry-run Print what would restart, without restarting.

Show a service’s logs.

barry service logs [options] [service]
Argument Required
service Optional
Option Description
-f, --follow Follow logs in real time.
-n, --lines <number> Number of lines to show. Default 50.
--stderr Show stderr instead of stdout.
--rotate Rotate a stopped service log, retaining three archives.

Move a service to another port, and wait until every route that targets it follows.

barry service port [options] <service> <port>
Argument Required
service Required
port Required

Every command also accepts -h, --help. All system commands.