From 3177a49ce9e21df6894cdea4f256d60b8e556c81 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 26 Aug 2010 02:28:37 +0200 Subject: [PATCH] service: properly handle Fedora's broken MTA meta-service name --- src/service.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/service.c b/src/service.c index d52856af..56c85025 100644 --- a/src/service.c +++ b/src/service.c @@ -251,9 +251,17 @@ static int sysv_translate_facility(const char *name, char **_r) { "$time", SPECIAL_RTC_SET_TARGET, /* Debian extensions */ +#ifdef TARGET_DEBIAN "$mail-transport-agent", SPECIAL_MAIL_TRANSFER_AGENT_TARGET, +#endif "$mail-transfer-agent", SPECIAL_MAIL_TRANSFER_AGENT_TARGET, - "$x-display-manager", SPECIAL_DISPLAY_MANAGER_SERVICE + "$x-display-manager", SPECIAL_DISPLAY_MANAGER_SERVICE, + +#ifdef TARGET_FEDORA + /* Fedora extensions, lacking the $ prefix */ + "MTA", SPECIAL_MAIL_TRANSFER_AGENT_TARGET, + "smtpdaemon", SPECIAL_MAIL_TRANSFER_AGENT_TARGET +#endif }; unsigned i; -- 2.39.5