diff options
Diffstat (limited to 'src/dbus-unit.c')
-rw-r--r-- | src/dbus-unit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dbus-unit.c b/src/dbus-unit.c index e3e1be12ad..5c474c0c1e 100644 --- a/src/dbus-unit.c +++ b/src/dbus-unit.c @@ -281,6 +281,9 @@ static DBusHandlerResult bus_unit_message_dispatch(Unit *u, DBusMessage *message int r; char *path; + if (job_type == JOB_START && u->meta.only_by_dependency) + return bus_send_error_reply(m, message, NULL, -EPERM); + if (!dbus_message_get_args( message, &error, |