
On Sun, Apr 12, 2015 at 9:02 PM, Christian Boltz <opensuse@cboltz.de> 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@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org