You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is like a really strong version of Wants=, that keeps starting the
specified unit if it is ever found inactive.
This is an alternative to Restart= inside a unit, acknowledging the fact
that whether to keep restarting the unit is sometimes not a property of
the unit itself but the state of the system.
This implements a part of what systemd#4263 requests. i.e. there's no
distinction between "always" and "opportunistic". We just dumbly
implement "always" and become active whenever we see no job queued for
an inactive unit that is supposed to be upheld.
log_unit_debug(u, "Unit is started because upheld by active unit %s.", culprit->id);
1333
+
1334
+
/* If stopping a unit fails continuously we might enter a stop loop here, hence stop acting on the
1335
+
* service being unnecessary after a while. */
1336
+
1337
+
if (!ratelimit_below(&u->auto_start_stop_ratelimit)) {
1338
+
log_unit_warning(u, "Unit needs to be started because active unit %s upholds it, but not starting since we tried this too often recently.", culprit->id);
1339
+
continue;
1340
+
}
1341
+
1342
+
r=manager_add_job(u->manager, JOB_START, u, JOB_FAIL, NULL, &error, NULL);
0 commit comments