blob: 39d4de69a699c42a8f1ae89f0904a906a8719be7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# shellcheck shell=bash disable=SC2034 # sourced by run-maint-scenarios.sh
# Scenario: cronie enabled and started (the stopped-cron posture).
#
# Bootstrap installs cronie but never enables it — the broken state is the
# package's default. The remedy enables + starts the service.
SCENARIO_DESC="cronie enabled and started from the stopped state"
SCENARIO_GROUP="systemd"
SCENARIO_PROFILES="any"
scenario_break() {
mexec "systemctl disable --now cronie.service >/dev/null 2>&1 || true; ! systemctl is-active cronie.service >/dev/null 2>&1"
}
scenario_fix() {
mfix cron_enable
}
scenario_assert() {
mexec "systemctl is-enabled cronie.service && systemctl is-active cronie.service"
}
|