aboutsummaryrefslogtreecommitdiff
path: root/package/exim
diff options
context:
space:
mode:
authorGravatar Alex Suykov <alex.suykov@gmail.com>2015-05-23 13:03:27 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-13 19:05:23 +0200
commitb52d96ab4ed5e3ea8e993283a14cd2999aea10ad (patch)
treee173413a3ce3bf396eb26b2ed2d99a3c0f3ff137 /package/exim
parent61a9a4cb29bd115b6255db682ef10442f1309682 (diff)
downloadbuildroot-b52d96ab4ed5e3ea8e993283a14cd2999aea10ad.tar.gz
buildroot-b52d96ab4ed5e3ea8e993283a14cd2999aea10ad.tar.bz2
exim: systemd support
Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/exim')
-rw-r--r--package/exim/exim.mk8
-rw-r--r--package/exim/exim.service10
2 files changed, 18 insertions, 0 deletions
diff --git a/package/exim/exim.mk b/package/exim/exim.mk
index 8ad0328d34..d8f41b04d6 100644
--- a/package/exim/exim.mk
+++ b/package/exim/exim.mk
@@ -133,4 +133,12 @@ define EXIM_INSTALL_INIT_SYSV
$(TARGET_DIR)/etc/init.d/S86exim
endef
+define EXIM_INSTALL_INIT_SYSTEMD
+ $(INSTALL) -D -m 644 package/exim/exim.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/exim.service
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+ ln -sf /usr/lib/systemd/system/exim.service \
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/exim.service
+endef
+
$(eval $(generic-package))
diff --git a/package/exim/exim.service b/package/exim/exim.service
new file mode 100644
index 0000000000..26daabc4c0
--- /dev/null
+++ b/package/exim/exim.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Exim MTA
+After=syslog.target network.target
+
+[Service]
+ExecStart=/usr/bin/exim -bdf
+Restart=always
+
+[Install]
+WantedBy=multi-user.target