mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-22 01:53:54 +08:00
Proper systemd support
Follow the directions on integrating systemd with autotools provided by the systemd documentation itself: https://www.freedesktop.org/software/systemd/man/daemon.html#Installing%20systemd%20Service%20Files The snippet has been adapted to better match our coding style, e.g. directly use of `if` instead of `AS_IF`.
This commit is contained in:
committed by
Florian Pose
parent
89a7263155
commit
db729dc967
+4
-3
@@ -35,9 +35,6 @@ SUBDIRS = init.d sysconfig
|
||||
|
||||
sbin_SCRIPTS = ethercatctl
|
||||
|
||||
systemddir = $(libdir)/systemd/system
|
||||
systemd_DATA = ethercat.service
|
||||
|
||||
dist_sysconf_DATA = ethercat.conf
|
||||
|
||||
EXTRA_DIST = \
|
||||
@@ -49,4 +46,8 @@ BUILT_SOURCES = \
|
||||
ethercatctl \
|
||||
ethercat.service
|
||||
|
||||
if HAVE_SYSTEMD
|
||||
systemdsystemunit_DATA = ethercat.service
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user