mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-06 11:51:45 +08:00
Try to reuse the configured paths as much as possible. Unfortunately, to be able to fully expand some variable (e.g. `bindir`), these files must be expanded by make, not by configure. This adds some complexity: https://www.gnu.org/software/automake/manual/html_node/Scripts.html
30 lines
772 B
SYSTEMD
30 lines
772 B
SYSTEMD
#
|
|
# EtherCAT master kernel modules
|
|
#
|
|
|
|
[Unit]
|
|
Description=EtherCAT Master Kernel Modules
|
|
|
|
#
|
|
# Uncomment this, if the generic Ethernet driver is used. It assures, that the
|
|
# network interfaces are configured, before the master starts.
|
|
#
|
|
#Requires=network.service # Stop master, if network is stopped
|
|
#After=network.service # Start master, after network is ready
|
|
|
|
#
|
|
# Uncomment this, if a native Ethernet driver is used. It assures, that the
|
|
# network interfaces are configured, after the Ethernet drivers have been
|
|
# replaced. Otherwise, the networking configuration tools could be confused.
|
|
#
|
|
#Before=network.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=@sbindir@/ethercatctl start
|
|
ExecStop=@sbindir@/ethercatctl stop
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|