dsh-wsl-systemd: WSL User-level systemd Read-only Query Plugin

Foreword

In the DSH ecosystem, agents or developers often need to check the running status of user-level systemd services within the WSL environment. Directly invoking systemctl commands in scripts often lacks context or permission control. The dsh-wsl-systemd plugin provides a standard interface for systemd --user, addressing this query challenge.

Plugin Introduction

This is a WSL plugin for DeepSeek Harness (DSH), focusing on read-only queries for user-level systemd. It does not involve service start/stop control and only provides status display and log viewing capabilities. This plugin is maintained by user 173787247, licensed under MIT, and belongs to the admin-security category.

Installation and Activation

Before installation, ensure that the DSH version meets the requirements (≥ 0.1.2). The installation command is as follows:

dsh plugin --profile web add github:173787247/dsh-wsl-systemd

Once the installation is complete, the plugin will take effect in the corresponding profile.

Core Functions

This plugin provides four core functions, all accessing system information in a read-only manner:

  1. systemd_status: Checks if systemctl is available in the current environment.
  2. systemd_user_list: Lists the systemd services of the current user.
  3. systemd_user_show: Displays detailed status of a specified unit.
  4. systemd_user_journal: Reads recent logs of a specified service.

Typical Usage

When invoking plugin functions, you can use the following command formats:

systemd --user list
systemd --user show
systemd --user journal

Use Cases and Notes

This plugin is designed as a pure query tool and does not possess service management capabilities.

  • Permission Limitations: The plugin runs with the permissions of the current DSH process. Please ensure that relevant user units are visible in the current context.
  • Functional Boundaries: It cannot execute start, stop, or enable operations.
  • Target Audience: Particularly suitable for troubleshooting the status of background services running as the user, such as Ollama.

It is recommended to review the source code and license before integrating into a production environment.

Ecosystem and Links

The core philosophy of DSH is “Everything is a plugin.” This plugin is hosted in the community directory and has no official affiliation with DeepSeek or High-Flyer. For more information, please consult the community directory or the GitHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye