---
name: "lxd.activateifneeded"
section: "1"
platform: "linux"
package: "lxd"
version: "5.0.2+git20231211.1364ae4-9+deb13u7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/lxd.activateifneeded"
---

# lxd.activateifneeded(1)

Check if LXD should be started

## NAME

lxd-activateifneeded - Check if LXD should be started

## SYNOPSIS

**lxd activateifneeded \[flags\]**

## DESCRIPTION

Description:\
   Check if LXD should be started

This command will check if LXD has any auto-started instances,\
   instances which were running prior to LXD's last shutdown or if it's\
   configured to listen on the network address.

If at least one of those is true, then a connection will be attempted to the\
   LXD socket which will cause a socket-activated LXD to be spawned.

## OPTIONS INHERITED FROM PARENT COMMANDS

**-d**, **--debug**\[=false\]\
 	Show all debug messages

**-h**, **--help**\[=false\]\
 	Print help

**--logfile**=""\
 	Path to the log file\`\`

**--syslog**\[=false\]\
 	Log to syslog

**--trace**=\[\]\
 	Log tracing targets\`\`

**-v**, **--verbose**\[=false\]\
 	Show all information messages

**--version**\[=false\]\
 	Print version number

## SEE ALSO

**[lxd(1)](/lxd/1.md)**

## HISTORY

27-Jun-2026 Auto generated by spf13/cobra
