Skip to main content
DocsLinux host agentOperate the Linux remote agent services

Operate the Linux remote agent services

The Linux remote agent uses a system broker and workers in the GNOME desktop or at the GDM login screen. Before restarting any agent service, have every operator disconnect and confirm there is no active remote session in Computers > Machines. Run user commands in the account's own systemd user manager.

Machine broker and desktop session worker

  1. The system unit vdo-agent-broker.service starts at boot, keeps the registered Workstation host connected and routes viewers to the eligible session. Check its status and journal on the host.

    sudo systemctl status vdo-agent-broker.service
    sudo journalctl -u vdo-agent-broker.service --since "10 minutes ago" --no-pager
    
  2. The user unit vdo-agent-session.service handles picture, sound and input in the signed-in GNOME desktop. Check it from that desktop user's session.

    systemctl --user status vdo-agent-session.service
    journalctl --user -u vdo-agent-session.service --since "10 minutes ago" --no-pager
    
  3. The installer adds a desktop autostart entry that starts the worker at sign-in. If systemd generates a corresponding unit, inspect it in the same user manager.

    systemctl --user status 'app-vdo\x2dsession\[email protected]'
    journalctl --user -u 'app-vdo\x2dsession\[email protected]' --since "10 minutes ago" --no-pager
    

Restart the broker or desktop worker

  1. Have Workstation operators disconnect and confirm the host is idle in Computers > Machines. Use the system manager to restart the machine broker.

    sudo systemctl restart vdo-agent-broker.service
    
  2. To restart the desktop worker on an idle host, run the user command from the signed-in GNOME desktop.

    systemctl --user restart vdo-agent-session.service
    

GDM login-screen worker

  1. The user unit vdo-agent-greeter.service serves the restricted GDM login screen. While that screen is active, list the sessions and identify its account.

    loginctl list-sessions
    
  2. Set greeter_user below to that account, gdm or gdm-greeter. Check the status in the greeter's user manager and read its journal.

    greeter_user=gdm
    greeter_uid=$(id -u "$greeter_user")
    greeter_runtime="/run/user/$greeter_uid"
    sudo runuser -u "$greeter_user" -- env XDG_RUNTIME_DIR="$greeter_runtime" \
      DBUS_SESSION_BUS_ADDRESS="unix:path=$greeter_runtime/bus" \
      systemctl --user status vdo-agent-greeter.service
    sudo journalctl _UID="$greeter_uid" _SYSTEMD_USER_UNIT=vdo-agent-greeter.service \
      --since "10 minutes ago" --no-pager
    
  3. To restart the greeter worker, confirm the host is idle. In the same terminal, use the account and runtime variables set above.

    sudo runuser -u "$greeter_user" -- env XDG_RUNTIME_DIR="$greeter_runtime" \
      DBUS_SESSION_BUS_ADDRESS="unix:path=$greeter_runtime/bus" \
      systemctl --user restart vdo-agent-greeter.service
    

Automatic updates and the system timer

  1. By default, a new unpinned broker installation enables vdo-agent-update.timer. It starts vdo-agent-update.service on a six-hour schedule with a random delay. The service checks for a newer release and applies it when the broker confirms the host is idle. A busy host defers the update. A pinned install removes the schedule and --no-auto-update disables it.

  2. Check the timer's last and next runs and the update journal. The one-shot service is normally inactive between checks.

    sudo systemctl status vdo-agent-update.timer vdo-agent-update.service
    systemctl list-timers --all vdo-agent-update.timer
    sudo journalctl -u vdo-agent-update.timer -u vdo-agent-update.service --since "24 hours ago" --no-pager
    
  3. To restart an enabled timer during an idle window, run the following command.

    sudo systemctl restart vdo-agent-update.timer
    
  4. To check immediately with the schedule enabled, start the update service on an idle host. This can install a newer release. For a planned version change, follow Install and update the Linux agent.

    sudo systemctl start vdo-agent-update.service
    

Earlier and single-user installations

  1. The single-user recovery installer uses vdo-agent.service in the desktop account. An RPM can also provide the vdo-remote-agent.service user unit. Set unit to the one installed and run these commands in the desktop account. For units that write agent output to /tmp/vdo-agent-systemd.log, check that file for details.

    unit=vdo-agent.service
    systemctl --user status "$unit"
    journalctl --user -u "$unit" --since "10 minutes ago" --no-pager
    
  2. On earlier system-service installations, use the system manager for the installed vdo-agent.service or vdo-remote-agent.service.

    unit=vdo-agent.service
    sudo systemctl status "$unit"
    sudo journalctl -u "$unit" --since "10 minutes ago" --no-pager
    
  3. On an idle host, restart the user unit from the desktop account if that is the installation you checked.

    systemctl --user restart "$unit"
    
  4. On an idle host with a system-service installation, restart the system unit instead.

    sudo systemctl restart "$unit"
    

Check Workstation after maintenance

  1. Check the host's agent version, heartbeat and capture readiness in Computers > Machines and verify picture and input over a fresh connection.
  2. See Manage the Linux agent for desktop and lifecycle checks and Troubleshoot the Linux agent for help with connection, capture or input symptoms.