script/ethercat.service.in
author Gavin Lambert <uecasm@users.sourceforge.net>
Sun, 01 Jun 2014 18:07:47 +1200
changeset 2624 ecef88726fc3
parent 2589 2b9c78543663
permissions -rw-r--r--
Exit properly on "restart" request to init script.
[29-init-restart]
#
# 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=@prefix@/sbin/ethercatctl start
ExecStop=@prefix@/sbin/ethercatctl stop

[Install]
WantedBy=multi-user.target