diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-02-13 18:51:30 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-02-13 18:51:30 +0100 |
commit | 3185a36b05d53757a412f847d8c510978b9b00f0 (patch) | |
tree | 14e95eaae6c7dc0ecfc4486efbbbb9446e4be0ed /src/dbus-service.c | |
parent | e9fbc77c8f6a396ce9432e3791710e30de6e570b (diff) |
service: make main pid guessing optional, and reread pid file after reloads
Diffstat (limited to 'src/dbus-service.c')
-rw-r--r-- | src/dbus-service.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dbus-service.c b/src/dbus-service.c index f929627666..93fc2a3b68 100644 --- a/src/dbus-service.c +++ b/src/dbus-service.c @@ -127,8 +127,9 @@ DBusHandlerResult bus_service_message_handler(Unit *u, DBusConnection *connectio BUS_EXEC_CONTEXT_PROPERTIES("org.freedesktop.systemd1.Service", u->service.exec_context), { "org.freedesktop.systemd1.Service", "PermissionsStartOnly", bus_property_append_bool, "b", &u->service.permissions_start_only }, { "org.freedesktop.systemd1.Service", "RootDirectoryStartOnly", bus_property_append_bool, "b", &u->service.root_directory_start_only }, - { "org.freedesktop.systemd1.Service", "RemainAfterExit", bus_property_append_bool, "b", &u->service.remain_after_exit }, - BUS_EXEC_STATUS_PROPERTIES("org.freedesktop.systemd1.Service", u->service.main_exec_status, "ExecMain"), + { "org.freedesktop.systemd1.Service", "RemainAfterExit", bus_property_append_bool, "b", &u->service.remain_after_exit }, + { "org.freedesktop.systemd1.Service", "GuessMainPID", bus_property_append_bool, "b", &u->service.guess_main_pid }, + BUS_EXEC_STATUS_PROPERTIES("org.freedesktop.systemd1.Service", u->service.main_exec_status, "ExecMain"), { "org.freedesktop.systemd1.Service", "MainPID", bus_property_append_pid, "u", &u->service.main_pid }, { "org.freedesktop.systemd1.Service", "ControlPID", bus_property_append_pid, "u", &u->service.control_pid }, #ifdef HAVE_SYSV_COMPAT |