summaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-26 02:28:37 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-26 04:10:40 +0200
commit3177a49ce9e21df6894cdea4f256d60b8e556c81 (patch)
tree8f0302a6f0072f6bd60fadae41d732a8d0ea6b76 /src/service.c
parent43a3754933023b5bd63d72e41c13b61fdadb5a18 (diff)
service: properly handle Fedora's broken MTA meta-service name
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index d52856af89..56c8502500 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;