Manage systemd services
View, start, stop, restart and enable a host's systemd services beside its terminal, and follow their logs.
Duo22 can show a host’s systemd services in a pane beside its SSH terminal. It uses the terminal’s connection, so you don’t sign in again, and it runs the host’s own systemctl, so nothing needs installing.
Open the services pane
- In an SSH terminal, click the Services button in the terminal’s header. Click it again (Hide services) or use Close services to close the pane.
- Or right-click a host on the Hosts page or in the sidebar host tree and choose Open services. If a terminal to that host is already open, the pane opens there; otherwise Duo22 opens a new terminal with the pane showing.
Drag the pane’s left edge to make it wider. Duo22 remembers the width on this device.
The pane’s header shows the systemd version, what you’re allowed to do (as root, changes through sudo or read only) and how many services are running or failed.
Find a service
Filter the list with All, Running, Failed or Stopped, or type in Filter services to search by name or description.
Service actions
Use a service’s row buttons, or right-click it (or click its ⋯ button):
- Start, Restart and Reload configuration.
- Stop. Duo22 asks first: whatever the service provides goes down until it’s started again, and stopping sshd can cut you off.
- Start at boot or Don’t start at boot.
- Logs opens a pane following
journalctl -ufor the service, starting from the last 200 lines. If the tab is already split four ways, the logs open in a new tab instead. - Status and unit file shows the service’s status, including its last log lines, and its unit file with any drop-ins.
- Copy name.
Read only, or able to make changes
Anyone can view services. Starting, stopping, restarting, reloading and changing whether a service starts at boot need root. To use them, either:
- sign in to the host as root, or
- allow your user passwordless sudo,
then reconnect. Without either, the pane’s header says read only and those actions are unavailable.
If the host doesn’t use systemd, or systemctl isn’t on the PATH for SSH sessions, the pane says it can’t show services. See Fix Docker, Kubernetes and services connection errors.
Still stuck? Check the FAQ, or browse thehelp centre.