Files
ethercat/script/ethercat.service.in
Nicola Fontana 4c8ffd9a57 Do not hardcode paths in scripts
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
2021-07-22 14:40:03 +02:00

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