terminusd docs :: terminusctl
Dynamic Control CLI

Control terminusd from the CLI.

terminusctl allows you to control terminusd, reconfiguring it dynamically or overriding its configuration.

terminusctl requires root privileges to talk to the daemon.

Service commands

terminusctl start
terminusctl stop

Start and stop terminusd.

Runtime state and reload

terminusctl status
terminusctl reload-config

Check the current status of terminusd and reload its configuration and shutdown actions without restarting the daemon.

Shutdown guard control

terminusctl shutdown-guard enable
terminusctl shutdown-guard disable

If your Shutdown Guard script has erroneously disabled shutdowns, or you're developing it and don't want to restart the daemon - terminusctl allows you to dynamically start and stop the configured Shutdown Guard.

Shutdown command control

terminusctl shutdown-commands enable
terminusctl shutdown-commands disable

terminusctl can use Shutdown Guard to enable or disable system-wide shutdowns, but they can also be disabled and enabled through temrinusctl.

Reboot and poweroff requests

terminusctl --force system-reboot
terminusctl --force system-shutdown
terminusctl --force --skip-scripts system-reboot
terminusctl --force --skip-scripts system-shutdown

To optionally skip overriding the disabled shutdown state of the system, you can use temrinusctl to reboot or shutdown.

Without --force, reboot and shutdown commands prompt for confirmation.

One-shot logind delay sync

terminusctl --set-logind-inhibitor-delay

terminusd requires an inibitor delay timeout be configured in /etc/systemd/logind.conf. This command allows you to quickly set it from terminusctl without using the automatic setting from the core configuration.

This will require a restart of logind or a system reboot.

Help

terminusctl --help