{ "name": "systemctl", "section": 1, "title": "bare-initd service control (systemd-like subset)", "synopsis": [ "systemctl list|list-units", "systemctl status [UNIT] [--lines N]", "systemctl logs UNIT [--lines N]", "systemctl start|stop|restart UNIT", "systemctl enable|disable UNIT", "systemctl is-enabled UNIT", "systemctl is-active UNIT", "journalctl -u UNIT [--lines N]" ], "description": "Lists and manages session-scoped bare-initd units (kernel-logger, bare-cron, …). Implemented by the booter (kernel-runner); /bin stubs exist for PATH and man(1). enable/disable toggle the personal-drive preset file ~/.config/bare-os/initd/disabled.txt for future boots in the same image. is-enabled reports enabled or disabled; is-active reports active vs inactive from runtime phase (exit 0 vs 3). Logs live under /var/log/bare-os/ when the unit defines a logPath. The legacy name bare-initctl is still accepted by the booter as an alias.", "options": [ { "flag": "--lines N", "meaning": "Tail N lines from the unit log (status, logs, journalctl)" } ], "aliases": [ "bare-initctl" ], "keywords": [ "bare-initd", "initctl", "service", "supervisor", "cron", "systemd" ], "bareOsNotes": "journalctl supports -u UNIT and --lines / -n. Other systemd verbs are unavailable on Bare OS (exit 2).", "seeAlso": [ { "name": "crontab", "section": 1 }, { "name": "bare-os-shell", "section": 1 } ], "examples": [ { "caption": "list units", "code": "systemctl list-units" }, { "caption": "restart scheduler", "code": "systemctl restart bare-cron" }, { "caption": "tail cron errors", "code": "journalctl -u bare-cron --lines 20" } ] }