From 98b5b2986fa1b85fd2d2e80f867f1647b4e4e3b5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 28 Jan 2010 02:43:52 +0100 Subject: [PATCH] add more special units --- manager.c | 4 +++- manager.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/manager.c b/manager.c index a32755ce..8ee560c5 100644 --- a/manager.c +++ b/manager.c @@ -20,7 +20,9 @@ static const char * const special_table[_SPECIAL_UNIT_MAX] = { [SPECIAL_SYSLOG_SERVICE] = "syslog.service", [SPECIAL_DBUS_SERVICE] = "messagebus.service", - [SPECIAL_LOGGER_SOCKET] = "systemd-logger.socket" + [SPECIAL_LOGGER_SOCKET] = "systemd-logger.socket", + [SPECIAL_KBREQUEST_TARGET] = "kbrequest.target", + [SPECIAL_CTRL_ALT_DEL_TARGET] = "ctrl-alt-del.target" }; static int manager_setup_signals(Manager *m) { diff --git a/manager.h b/manager.h index 0c923fcc..a00a9b9c 100644 --- a/manager.h +++ b/manager.h @@ -34,6 +34,8 @@ typedef enum SpecialUnit { SPECIAL_SYSLOG_SERVICE, SPECIAL_DBUS_SERVICE, SPECIAL_LOGGER_SOCKET, + SPECIAL_CTRL_ALT_DEL_TARGET, + SPECIAL_KBREQUEST_TARGET, _SPECIAL_UNIT_MAX } SpecialUnit; -- 2.39.5