exim: systemd support
Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
61a9a4cb29
commit
b52d96ab4e
@ -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))
|
||||
|
10
package/exim/exim.service
Normal file
10
package/exim/exim.service
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user