linux-systemd-doctor

Diagnose and fix failed Linux systemd services. Check service status, read journalctl logs, analyze unit files, fix dependencies, port conflicts, and permission issues. Use when a systemd service won't start, keeps restarting, or shows "failed" or "inactive (dead)" status.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "linux-systemd-doctor" with this command: npx skills add laolaoqi/linux-systemd-doctor

Linux systemd Doctor

Troubleshoot and fix broken systemd services.

Quick Diagnosis

# Check service status
systemctl status SERVICE --no-pager -l

# View full journal
journalctl -u SERVICE -n 100 --no-pager

# Follow live logs
journalctl -u SERVICE -f

Common Fixes

Service won't start

  1. Check syntax
    systemctl cat SERVICE
    
  2. View full error
    journalctl -u SERVICE -n 50 --no-pager -x
    
  3. Test the ExecStart command directly
  4. Check ExecStartPre failures
  5. Verify file permissions on all referenced paths

Service keeps restarting (Restart=always loop)

# Stop the restart loop
systemctl stop SERVICE

# Check the actual error
journalctl -u SERVICE -n 200 --no-pager

# Temporary fix: set Restart=no to debug
systemctl edit SERVICE
# Add:
# [Service]
# Restart=no

Service File Reference

DirectivePurpose
ExecStartMain command
ExecStartPrePre-start checks
ExecReloadReload command
Restart=on-failureAuto-restart strategy
RestartSec=5Wait time between restarts
StartLimitIntervalSec=60Rate limiting
User=Unprivileged user
WorkingDirectory=CWD for service
Environment=Env variables
LimitNOFILE=File descriptor limit

Port Conflict Check

# Check if service port is occupied
systemctl cat SERVICE | grep -i port
ss -tlnp | grep ":<PORT> "

📢 Need Help?

Need OpenClaw deployed on your server? I offer managed deployment & hosting:

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Dex

Manage your Dex personal CRM — search, create, and update contacts, log interaction notes, set follow-up reminders, organize contacts with tags and groups, a...

Registry SourceRecently Updated
5620ocruzv
General

pumpmarket skill

Predict pump.fun token graduations (YES/NO) on Solana mainnet via PumpMarket parimutuel betting markets.

Registry SourceRecently Updated
General

maxhub-weibo

微博/Weibo平台微博热搜、话题、用户与博文数据采集。当用户提到微博、weibo、热搜、超话、话题等相关需求时激活此Skill。

Registry SourceRecently Updated
General

Context Resume

Reconstructs your full working context when you return to a task after an interruption — meeting, lunch, sleep, weekend, or three-week vacation. Not session...

Registry SourceRecently Updated