> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cyberup24.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Shutdown Procedure

Shutting down the LARK correctly matters. The appliance continuously writes data to onboard storage — packet captures, flow records, alerts, and AI outputs — and several services maintain in-memory state that must be flushed before power is removed. An orderly shutdown gives the system time to finish in-progress writes, stop services cleanly, and leave storage in a consistent state. Skipping this process risks data corruption, partial records, and services that fail to start correctly on the next boot.

Always use the orderly shutdown procedure. Reserve the hard power-off only for situations where the operating system is completely unresponsive and no other option is available.

## Shutdown Methods

The LARK supports two orderly shutdown paths, plus a last-resort hard power-off for emergencies.

<CardGroup cols={2}>
  <Card title="Admin Interface (Preferred)" icon="display">
    The primary shutdown method. Initiates an orderly shutdown from within the operating system, allowing all services to stop gracefully and all in-progress writes to complete. Use this method whenever the admin interface is reachable.
  </Card>

  <Card title="BMC (Baseboard Management Controller)" icon="server">
    Use when the operating system is unresponsive but the BMC is reachable over the management network. The BMC can issue an ACPI shutdown signal that triggers an orderly OS shutdown without requiring a working admin interface session.
  </Card>
</CardGroup>

<Warning>
  Never hard-power-cycle the LARK by removing power or pressing the physical power button abruptly unless the appliance is completely unresponsive and neither the admin interface nor the BMC is available. Forced power cuts risk leaving data writes in a corrupted or partial state.
</Warning>

## Orderly Shutdown via the Admin Interface

<Steps>
  <Step title="Verify no critical operations are in progress">
    Before initiating shutdown, check the admin interface dashboard for any active offload jobs, ongoing firmware update processes, or other long-running operations. Allow these to complete or cancel them explicitly before proceeding.
  </Step>

  <Step title="Navigate to the shutdown control">
    In the admin interface, go to **System → Power**. This panel provides shutdown and reboot controls for the appliance.
  </Step>

  <Step title="Select Shut Down">
    Choose **Shut Down** (not **Reboot**) and confirm when prompted. The admin interface will display a shutdown-in-progress status as the system begins the orderly stop sequence.
  </Step>

  <Step title="Wait for the shutdown sequence to complete">
    The LARK stops each service in the correct order, flushes in-progress data writes, unmounts storage volumes cleanly, and then powers off. Do not remove power during this sequence. The admin interface will become unreachable as services stop — this is expected.
  </Step>

  <Step title="Confirm power-off">
    Wait until the appliance's power indicator shows that the system has fully powered off before disconnecting power, moving the unit, or beginning any physical handling. On most LARK models, this is indicated by the front-panel power LED extinguishing.
  </Step>
</Steps>

## Orderly Shutdown via the BMC

If the operating system is unresponsive and you cannot reach the admin interface, use the BMC to initiate shutdown.

<Steps>
  <Step title="Connect to the BMC">
    Access the BMC management interface over the dedicated management network connection. The BMC operates independently of the main OS and remains reachable even when the OS has stopped responding.
  </Step>

  <Step title="Issue a graceful shutdown">
    Use the BMC's power management controls to issue an ACPI graceful shutdown signal. This is equivalent to pressing the physical power button momentarily — it signals the OS to begin an orderly shutdown sequence rather than cutting power immediately.
  </Step>

  <Step title="Monitor and confirm power-off">
    Monitor the BMC's power status indicator. Wait for the appliance to report a powered-off state before taking any further action. If the OS does not respond to the ACPI signal within a reasonable time (typically two to three minutes), you may need to escalate to a hard power-off as a last resort.
  </Step>
</Steps>

## Before Transport

An orderly shutdown is required before transporting the LARK. Moving a running appliance risks physical damage to storage media and can interrupt writes in ways that corrupt data. Always shut down fully and confirm power-off before packaging the unit for transport. Refer to [Transport and Handling](/kit-composition/transport-and-handling) for the complete pre-transport checklist.

<Tip>
  If you regularly need to power-cycle the LARK as part of a deployment pattern — for example, deploying to a new site each week — build the shutdown step into your standard pack-up checklist so it is never skipped under time pressure.
</Tip>
