]> err.no Git - systemd/commitdiff
service: add extended debian facilities
authorLennart Poettering <lennart@poettering.net>
Mon, 24 May 2010 17:56:25 +0000 (19:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 May 2010 17:56:25 +0000 (19:56 +0200)
src/manager.h
src/service.c

index 9548b0f6138764c85dbb24b062bb3f9451c77a96..e2f9cf67e93f2abeefcfd4b7ec9fc9ec4ece9668 100644 (file)
@@ -105,7 +105,8 @@ struct Watch {
 #define SPECIAL_RPCBIND_TARGET "rpcbind.target"           /* LSB's $portmap */
 #define SPECIAL_SYSLOG_TARGET "syslog.target"             /* LSB's $syslog; Should pull in syslog.socket or syslog.service */
 #define SPECIAL_RTC_SET_TARGET "rtc-set.target"           /* LSB's $time */
-
+#define SPECIAL_DISPLAY_MANAGER_TARGET "display-manager.target"         /* Debian's $x-display-manager */
+#define SPECIAL_MAIL_TRANSFER_AGENT_TARGET "mail-transfer-agent.target" /* Debian's $mail-{transport|transfer-agent */
 #define SPECIAL_BASIC_TARGET "basic.target"
 #define SPECIAL_RESCUE_TARGET "rescue.target"
 
index 1379d14ff08fd42483ea215db96811255fb132bb..d4b874d62432292361625c198e709349fa964550 100644 (file)
@@ -191,13 +191,19 @@ static char *sysv_translate_name(const char *name) {
 static int sysv_translate_facility(const char *name, char **_r) {
 
         static const char * const table[] = {
+                /* LSB defined facilities */
                 "$local_fs",  SPECIAL_LOCAL_FS_TARGET,
                 "$network",   SPECIAL_NETWORK_TARGET,
                 "$named",     SPECIAL_NSS_LOOKUP_TARGET,
                 "$portmap",   SPECIAL_RPCBIND_TARGET,
                 "$remote_fs", SPECIAL_REMOTE_FS_TARGET,
                 "$syslog",    SPECIAL_SYSLOG_TARGET,
-                "$time",      SPECIAL_RTC_SET_TARGET
+                "$time",      SPECIAL_RTC_SET_TARGET,
+
+                /* Debian extensions */
+                "$mail-transport-agent", SPECIAL_MAIL_TRANSFER_AGENT_TARGET,
+                "$mail-transfer-agent",  SPECIAL_MAIL_TRANSFER_AGENT_TARGET,
+                "$x-display-manager",    SPECIAL_DISPLAY_MANAGER_TARGET,
         };
 
         unsigned i;