Skip to content

forkpress stop

forkpress stop stops ForkPress preview servers and detaches mount-backed storage for the affected site.

Use it after serve, or when you need to release APFS sparsebundle or Linux XFS loop storage before moving or deleting a project.

Usage

Terminal window
forkpress stop [options]

Options

OptionDefaultDescription
--work-dir <path>.forkpressStop the server registered for this site state directory.
--allDisabledStop every running ForkPress site server for the current user. Cannot be combined with --pid.
--pid <pid>NoneStop a specific ForkPress server process from the registry. Cannot be combined with --all.
--timeout <seconds>10Seconds to wait for graceful shutdown before forcing the process down.
--forceDisabledForce detach of mount-backed storage after stopping the server. Use only after normal detach reports that the mount is busy.

Target Selection

Without --all or --pid, ForkPress stops the server matching --work-dir. It first checks the site’s PID file, then the live server registry.

With --all, ForkPress stops every live server record for the current user and attempts storage cleanup for each affected site.

With --pid, ForkPress stops only the matching registered process.

Storage Cleanup

After stopping matched servers, stop tries to detach mount-backed storage for each affected site. On Linux XFS loop storage, ForkPress leaves the shared mount attached if another running ForkPress server is still using it.

Use --force only after normal detach has failed and you have confirmed no process should still be using the mount.

Examples

Stop the server for the current project:

Terminal window
forkpress stop

Stop a site using a custom state directory:

Terminal window
forkpress stop --work-dir .fp

Stop all ForkPress servers owned by the current user:

Terminal window
forkpress stop --all

Stop one registered process:

Terminal window
forkpress stop --pid 12345

forkpress server stop uses the same stop implementation. forkpress storage detach detaches storage without using the server-management shortcut.