cfdf515228
- .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>
1.2 KiB
1.2 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_uninstall | function | bash | infra | 1.0.0 | impure | systemd_local_uninstall(name: string) -> json | Detiene, deshabilita y elimina el unit file de un servicio systemd local. Idempotente: no falla si el servicio ya está parado o el unit no existe. Requiere sudo. |
|
false | error_go_core |
|
JSON {name, uninstalled:true}. Errores a stderr, exit 1. | false | bash/functions/infra/systemd_local_uninstall.sh |
Ejemplo
source bash/functions/infra/systemd_local_uninstall.sh
systemd_local_uninstall "sqlite_api"
# {"name":"sqlite_api","uninstalled":true}
Notas
- Secuencia: stop → disable → rm unit → daemon-reload → reset-failed.
stopydisablecon|| truepara idempotencia (si ya no estaba corriendo/enabled, no es error).reset-failedlimpia el estado "failed" si el servicio había fallado previamente.