diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-10 20:57:21 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-11 01:44:37 +0200 |
commit | b5e9dba8d60b8fb80b6302b6ea2cd665b3ab370c (patch) | |
tree | 87d329ecaab58cdf203208c945d1a80f7627ce5e /src/dbus.c | |
parent | 77d98d666a4ef24ef22f032476fd5d954c1a4699 (diff) |
unit: rename OnlyByDependency= to RefuseManualStart= and introduce RefuseManualStop=
Some unit shall never be start on user request (e.g. shutdown.target)
others never be stopped on user request (e.g. auditd.servce), hence
offer options for both.
Diffstat (limited to 'src/dbus.c')
-rw-r--r-- | src/dbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus.c b/src/dbus.c index 0ab55b8539..cb580e16b4 100644 --- a/src/dbus.c +++ b/src/dbus.c @@ -385,7 +385,7 @@ static DBusHandlerResult api_bus_message_filter(DBusConnection *connection, DBus r = manager_load_unit(m, name, NULL, &error, &u); - if (r >= 0 && u->meta.only_by_dependency) + if (r >= 0 && u->meta.refuse_manual_start) r = -EPERM; if (r >= 0) |