Skip to content

manage.flexfs

manage.flexfs provides host-level management of flexFS services. All subcommands require root privileges. All flags are public.

SubcommandDescription
start [service...]Start flexFS systemd services
stop [service...]Stop flexFS systemd services (reverse order)
restart [service...]Restart services (stop, clean, start)
status [service...]Show status of flexFS services
cleanRemove flexFS temporary files and caches
download <binary...>Download flexFS binaries to /tmp
install [binary...]Install flexFS binaries from /tmp to /usr/sbin
deployDeploy latest mount.flexfs binary to staging/production channels
upgrade [binary...]Full upgrade cycle (download, install, stop, clean, start)
watch <service>Follow journal logs for a flexFS service
versionPrint the build version
licensePrint license information

When a service argument is omitted, all services are targeted. The available service names are:

ServiceBinaryStart Order
statstat.flexfs1
adminadmin.flexfs2
freefree.flexfs3
proxyproxy.flexfs4
metameta.flexfs5

Services are started in the order shown above and stopped in reverse order.

Terminal window
manage.flexfs start [service...]

Starts the specified flexFS systemd services. If no services are named, all installed services are started.

Terminal window
manage.flexfs stop [service...]

Stops the specified services in reverse order to respect dependencies.

Terminal window
manage.flexfs restart [--vacuum] [service...]

Stops, cleans, and starts the specified services.

FlagTypeDefaultDescription
--vacuumboolfalseAlso vacuum system journal logs during clean
Terminal window
manage.flexfs status [service...]

Shows the active state and uptime of each installed service.

Terminal window
manage.flexfs clean [--vacuum]

Removes flexFS temporary files (/tmp/*.flexfs). Optionally vacuums systemd journal logs.

FlagTypeDefaultDescription
--vacuumboolfalseAlso vacuum system journal logs
Terminal window
manage.flexfs download [--version <ver>] [--arch <arch>] [--install] <binary...>

Downloads the specified flexFS binaries from get.flexfs.io to /tmp.

FlagTypeDefaultDescription
--archstringhost architectureArchitecture to download (e.g. amd64, aarch64)
--installboolfalseInstall binaries to /usr/sbin after downloading
--versionstringbuild versionVersion branch to download (e.g. v1.9.x)
Terminal window
manage.flexfs install [--version <ver>] [--arch <arch>] [binary...]

Installs flexFS binaries from /tmp to /usr/sbin. When binary names are given, any missing from /tmp are downloaded automatically.

FlagTypeDefaultDescription
--archstringhost architectureArchitecture to download for missing binaries
--versionstringbuild versionVersion branch for missing binaries
Terminal window
manage.flexfs deploy [--channel <channel>] [--version <ver>] [--adminPath <path>]

Downloads mount.flexfs for both architectures and places them in the admin server’s deploy directory for auto-update.

FlagTypeDefaultDescription
--adminPathstring~/.flexfs/adminAdmin folder path
--channelstringallDeployment channel: staging, production, or all
--versionstringbuild versionVersion branch to deploy
Terminal window
manage.flexfs upgrade [--version <ver>] [--arch <arch>] [--vacuum] [binary...]

Performs a full upgrade: downloads and installs binaries, stops all services, cleans state, then starts services.

FlagTypeDefaultDescription
--archstringhost architectureArchitecture to download
--vacuumboolfalseVacuum journal logs during clean
--versionstringbuild versionVersion branch to download
Terminal window
manage.flexfs watch [--lines <n>] [--cat] <service>

Follows journal logs for a flexFS service using journalctl -f.

FlagTypeDefaultDescription
--catboolfalseUse plain text output (journalctl -o cat)
--linesint100Number of recent log lines to show