Files
fn_registry/bash/functions/infra/systemd_local_restart.md
T
egutierrez 47fac22230 chore: auto-commit (799 archivos)
- .claude/CLAUDE.md
- .claude/commands/subagentes.md
- .claude/rules/INDEX.md
- .mcp.json
- bash/functions/cybersecurity/analyze_dns.md
- bash/functions/cybersecurity/audit_http_headers.md
- bash/functions/cybersecurity/audit_ssh_config.md
- bash/functions/cybersecurity/check_firewall.md
- bash/functions/cybersecurity/detect_suspicious_users.md
- bash/functions/cybersecurity/encrypt_file.md
- ...

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 00:28:20 +02:00

1.1 KiB

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
name kind lang domain version purity signature description tags uses_functions uses_types returns returns_optional error_type imports params output tested tests test_file_path file_path
systemd_local_restart function bash infra 1.0.0 impure systemd_local_restart(name: string) -> json Reinicia un servicio systemd local con systemctl restart. Útil tras actualizar el binario o cambiar el unit. Requiere sudo.
systemd
service
local
infra
restart
pendiente-usar
false error_go_core
name desc
name nombre del servicio sin sufijo .service
JSON {name, restarted:true, pid:int}. Errores a stderr, exit 1. false
bash/functions/infra/systemd_local_restart.sh

Ejemplo

source bash/functions/infra/systemd_local_restart.sh
systemd_local_restart "sqlite_api"
# {"name":"sqlite_api","restarted":true,"pid":54321}

Notas

  • Si modificaste el unit, primero ejecuta sudo systemctl daemon-reload (o llama a systemd_local_install_unit que ya lo hace).
  • Equivalente a stop+start pero systemd lo gestiona atómicamente.