Mailinglist Archive: opensuse-factory (437 mails)

< Previous Next >
Re: [opensuse-factory] Apparmor fails to start on boot in Tumbleweed
On Sun, Apr 12, 2015 at 9:02 PM, Christian Boltz <opensuse@xxxxxxxxx> wrote:

If there's a way to forbid usage of "restart" and "try-restart" (so that
only "reload" is permitted), I'd accept it as workaround. Displaying an
error message is still better than the current restart behaviour.

No, only
RefuseManualStart= RefuseManualStop=.. however if you set any of
those options, restart will be also refused (but the user will be
unable to manually start or stop) This is the logic..

if ((type == JOB_START && u->refuse_manual_start) ||
(type == JOB_STOP && u->refuse_manual_stop) ||
((type == JOB_RESTART || type == JOB_TRY_RESTART) &&
(u->refuse_manual_start || u->refuse_manual_stop)))
return sd_bus_error_setf(error,
BUS_ERROR_ONLY_BY_DEPENDENCY, "Operation refused, unit %s may be
requested by dependency only.", u->id);
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups