aos service
Run a command as a managed per-user OS service
6 commands. Run aos service --help for the same list from the binary, or see every group.
Run any command as a managed per-user service that starts at login and survives reboots: a launchd user agent on macOS, a systemd --user unit on Linux, a Scheduled Task on Windows. Names are prefixed aos., and aos only ever lists or removes its own services. No sudo.
Commands
Section titled “Commands”aos service create
Section titled “aos service create”Install a command as a service
aos service create <name> [--autostart] [--now] -- <command> [args...]| flag | values | meaning |
|---|---|---|
<name> |
Required positional argument | |
<command> |
Required positional argument | |
--autostart |
Optional | |
--now |
Optional | |
-- |
Required |
aos service create mcp --autostart --now -- aos serve mcpaos service create nap -- /bin/sleep 60aos service list
Section titled “aos service list”List the services aos manages
aos service listaos service listaos service remove
Section titled “aos service remove”Stop a service and delete its definition
aos service remove <name>| flag | values | meaning |
|---|---|---|
<name> |
Required positional argument |
aos service remove mcpaos service start
Section titled “aos service start”Start an installed service
aos service start <name>| flag | values | meaning |
|---|---|---|
<name> |
Required positional argument |
aos service start mcpaos service status
Section titled “aos service status”Report whether a service is running; exits non-zero when it is not
aos service status <name>| flag | values | meaning |
|---|---|---|
<name> |
Required positional argument |
aos service status mcpaos service stop
Section titled “aos service stop”Stop a running service
aos service stop <name>| flag | values | meaning |
|---|---|---|
<name> |
Required positional argument |
aos service stop mcp