スキル一覧に戻る
BreakerOfStems

linux-services

by BreakerOfStems

0🍴 0📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: linux-services description: Systemd service management and log access

Linux Services Skill

Manage systemd services and access logs safely.

See also: Shared Conventions | Safety Guidelines

Purpose

Check service status, view logs, and restart services when needed.

Commands

Service Status

systemctl status <service>
systemctl is-active <service>
systemctl is-enabled <service>
systemctl list-units --type=service --state=running

Service Control

systemctl start <service>
systemctl stop <service>
systemctl restart <service>
systemctl reload <service>

Log Access

journalctl -u <service> --no-pager -n 200
journalctl -u <service> --since "1 hour ago" --no-pager
journalctl -u <service> -f  # follow

Service Restart Protocol

Before restarting any service:

  1. Capture current status

    systemctl status myapp
    
  2. Capture recent logs

    journalctl -u myapp --no-pager -n 50
    
  3. Present findings to user

  4. Restart (only after acknowledgment)

    systemctl restart myapp
    
  5. Verify service started

    systemctl status myapp
    

Workflow: Diagnose Service Issues

# 1. Check if service is running
systemctl is-active myapp

# 2. Get detailed status
systemctl status myapp

# 3. Check recent logs for errors
journalctl -u myapp --no-pager -n 100 | grep -i error

# 4. Check when it last started
systemctl show myapp --property=ActiveEnterTimestamp

Workflow: Safe Restart

# 1. Pre-restart state
systemctl status myapp
journalctl -u myapp --no-pager -n 20

# 2. Restart
systemctl restart myapp

# 3. Verify
sleep 2
systemctl status myapp
journalctl -u myapp --since "1 minute ago" --no-pager

Policies

  • Capture state before restart - always log pre-restart status
  • Verify after restart - confirm service is healthy
  • No blind restarts - understand why restart is needed
  • Critical services - extra caution with database, auth, networking services
  • Report any failed restarts with full log output

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です