Fix systemd service file

network.service is suse-specific,
on Debian its name is networking.service.

According to https://systemd.io/NETWORK_ONLINE/,
there are three targets available in systemd for networking purposes.
This commit is contained in:
Bjarne von Horn 2024-04-08 13:44:28 +02:00
parent c3db4383b6
commit bac16d07a9
2 changed files with 19 additions and 3 deletions

View File

@ -55,6 +55,8 @@ MASTER0_DEVICE=""
# #
# Possible values: 8139too, e100, e1000, e1000e, r8169, generic, ccat, igb, igc. # Possible values: 8139too, e100, e1000, e1000e, r8169, generic, ccat, igb, igc.
# Separate multiple drivers with spaces. # Separate multiple drivers with spaces.
# A list of all matching kernel versions can be found here:
# https://docs.etherlab.org/ethercat/1.5/doxygen/devicedrivers.html
# #
# Note: The e100, e1000, e1000e, r8169, ccat, igb and igc drivers are not built by # Note: The e100, e1000, e1000e, r8169, ccat, igb and igc drivers are not built by
# default. Enable them with the --enable-<driver> configure switches. # default. Enable them with the --enable-<driver> configure switches.
@ -65,6 +67,11 @@ MASTER0_DEVICE=""
# #
DEVICE_MODULES="" DEVICE_MODULES=""
# If you have any issues about network interfaces not being configured
# properly, systemd may need some additional infos about your setup.
# Have a look at the service file, you'll find some details there.
#
# #
# Flags for loading kernel modules. # Flags for loading kernel modules.
# #

View File

@ -5,19 +5,28 @@
[Unit] [Unit]
Description=EtherCAT Master Kernel Modules Description=EtherCAT Master Kernel Modules
# Fine tuning of the startup dependencies below are recommended
# to provide a reliable startup routine.
# The dependencies below can be either uncommented after copying
# this file to /etc/systemd/system or by creating overrides:
# Copy the needed dependencies into
# /etc/systemd/system/ethercat.service.d/50-dependencies.conf
# in a [Unit] section.
# #
# Uncomment this, if the generic Ethernet driver is used. It assures, that the # Uncomment this, if the generic Ethernet driver is used. It assures, that the
# network interfaces are configured, before the master starts. # network interfaces are configured, before the master starts.
# #
#Requires=network.service # Stop master, if network is stopped #Requires=network.target # Stop master, if network is stopped
#After=network.service # Start master, after network is ready #After=network.target # Start master, after network is ready
# #
# Uncomment this, if a native Ethernet driver is used. It assures, that the # Uncomment this, if a native Ethernet driver is used. It assures, that the
# network interfaces are configured, after the Ethernet drivers have been # network interfaces are configured, after the Ethernet drivers have been
# replaced. Otherwise, the networking configuration tools could be confused. # replaced. Otherwise, the networking configuration tools could be confused.
# #
#Before=network.service #Before=network-pre.target
#Wants=network-pre.target
[Service] [Service]
Type=oneshot Type=oneshot