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:
Nicola Fontana
2021-05-22 07:22:57 +02:00
parent 779437feef
commit 1d65f6617f
3 changed files with 37 additions and 3 deletions
+4 -3
View File
@@ -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
#------------------------------------------------------------------------------