service-management

Configure systemd unit files for startup, restart, and log management.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/prapanch/agent-coda --skill service-management-prapanch
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: service-management
Source: https://github.com/prapanch/agent-coda/tree/main/sysadmin/service-management
Command: npx skills add https://github.com/prapanch/agent-coda --skill service-management-prapanch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you run, monitor, and maintain system services so they stay available across reboots and failures without manual babysitting.

Core Features & Use Cases

  • Systemd service setup and hardening: Create reliable unit files with correct ordering, restart behavior, least-privilege, and safe filesystem/environment handling.
  • Operational debugging that uses the right signals: Diagnose startup failures and crash loops using journalctl, systemctl status, manual repro as the service user, and resource/port checks.
  • Health checks and log lifecycle management: Use HTTP health endpoints or systemd watchdog integration, and configure journald/logrotate so logs don’t fill disks.

Quick Start

Use the service-management skill to set up a systemd unit for your app and enable resilient restarts, health checking, and journal-based troubleshooting.

Frequently Asked Questions about service-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure systemd to automatically restart a service that crashes?▼

To configure systemd to automatically restart a crashed service, you create a unit file with correct restart policies and dependency wiring. This ensures your services recover from failures automatically across reboots without requiring manual babysitting or intervention.

Why does my systemd service fail to start on boot, and how do I debug it?▼

Debugging a systemd service startup failure involves analyzing journald logs and systemctl status. This Skill guides you through operational debugging by using journalctl, checking resource or port conflicts, and reproducing the issue manually as the service user to isolate the root cause.

How do I prevent journald logs from filling up the disk?▼

Preventing journald logs from filling the disk requires configuring log rotation and lifecycle management. This Skill helps you set up journald and logrotate configurations so operational logs are maintained properly without consuming all available system storage over time.

Can I use systemd watchdog for health checks on my production service?▼

Yes, you can use systemd watchdog integration for health checks on your production service. This Skill assists in implementing health check strategies using either HTTP health endpoints or systemd watchdog integration to detect and handle silently degrading services.

What is the best way to harden a systemd unit file for least-privilege?▼

The best way to harden a systemd unit file is by applying least-privilege principles and safe filesystem or environment handling. This Skill helps you create reliable unit files with security hardening, proper startup ordering, and safe environment configurations for production.