schedls only ever read the invoking user's crontab, so jobs in /etc/cron.d (and /etc/crontab, periodic dirs, other users' spools)
were invisible. This adds full discovery and management of system cron.
Changes
Parse system crontabs (min hour dom mon dow USER command) and @nickname USER command; skip dotted/hidden /etc/cron.d names.
Discover /etc/crontab, /etc/cron.d/*, /etc/cron.{hourly,daily, weekly,monthly}/*, and other users' spool crontabs as root. Jobs are
named <file>:<line>, <script> or <user>:<line>.
new --cron --system writes an atomic, root-owned /etc/cron.d/schedls-<name> drop-in; rm removes only marker-matching
drop-ins. --run-as USER sets the run-as account (default root).
Interactive new -i now asks for scope and, for system cron, run-as.
show/JSON expose the run-as user; doctor reports system cron files.
New unit tests cover system parsing, discovery, plans, file-mode
apply/rollback, CLI rules and the interactive wizard; integration
tests cover real system discovery and a root-gated lifecycle.
Manual: schedls --backend cron now lists /etc/cron.d and periodic
jobs on a host with system cron.
`schedls` only ever read the invoking user's crontab, so jobs in
`/etc/cron.d` (and `/etc/crontab`, periodic dirs, other users' spools)
were invisible. This adds full discovery and management of system cron.
## Changes
- Parse system crontabs (`min hour dom mon dow USER command`) and
`@nickname USER command`; skip dotted/hidden `/etc/cron.d` names.
- Discover `/etc/crontab`, `/etc/cron.d/*`, `/etc/cron.{hourly,daily,
weekly,monthly}/*`, and other users' spool crontabs as root. Jobs are
named `<file>:<line>`, `<script>` or `<user>:<line>`.
- `new --cron --system` writes an atomic, root-owned
`/etc/cron.d/schedls-<name>` drop-in; `rm` removes only marker-matching
drop-ins. `--run-as USER` sets the run-as account (default `root`).
- Interactive `new -i` now asks for scope and, for system cron, run-as.
- `show`/JSON expose the run-as user; doctor reports system cron files.
- Docs updated (cron, CLI, architecture, security model, README).
## Testing
- New unit tests cover system parsing, discovery, plans, file-mode
apply/rollback, CLI rules and the interactive wizard; integration
tests cover real system discovery and a root-gated lifecycle.
- Manual: `schedls --backend cron` now lists `/etc/cron.d` and periodic
jobs on a host with system cron.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
schedlsonly ever read the invoking user's crontab, so jobs in/etc/cron.d(and/etc/crontab, periodic dirs, other users' spools)were invisible. This adds full discovery and management of system cron.
Changes
min hour dom mon dow USER command) and@nickname USER command; skip dotted/hidden/etc/cron.dnames./etc/crontab,/etc/cron.d/*,/etc/cron.{hourly,daily, weekly,monthly}/*, and other users' spool crontabs as root. Jobs arenamed
<file>:<line>,<script>or<user>:<line>.new --cron --systemwrites an atomic, root-owned/etc/cron.d/schedls-<name>drop-in;rmremoves only marker-matchingdrop-ins.
--run-as USERsets the run-as account (defaultroot).new -inow asks for scope and, for system cron, run-as.show/JSON expose the run-as user; doctor reports system cron files.Testing
apply/rollback, CLI rules and the interactive wizard; integration
tests cover real system discovery and a root-gated lifecycle.
schedls --backend cronnow lists/etc/cron.dand periodicjobs on a host with system cron.