script/ethercat.service.in
author Gavin Lambert <gavinl@compacsort.com>
Sat, 31 May 2014 14:49:02 +1200
changeset 2616 f99e5b11806c
parent 2589 2b9c78543663
permissions -rw-r--r--
Moved userspace domain unmap to deactivate instead of release, fixing memory/ref leak.
2189
002b978df979 Added first systemd support.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
#
2589
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
     2
# EtherCAT master kernel modules
2189
002b978df979 Added first systemd support.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     3
#
002b978df979 Added first systemd support.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
002b978df979 Added first systemd support.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
[Unit]
002b978df979 Added first systemd support.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
Description=EtherCAT Master Kernel Modules
002b978df979 Added first systemd support.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
2589
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
     8
#
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
     9
# Uncomment this, if the generic Ethernet driver is used. It assures, that the
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
    10
# network interfaces are configured, before the master starts.
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
    11
#
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
    12
#Requires=network.service # Stop master, if network is stopped
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
    13
#After=network.service # Start master, after network is ready
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
    14
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
    15
#
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
    16
# Uncomment this, if a native Ethernet driver is used. It assures, that the
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
    17
# network interfaces are configured, after the Ethernet drivers have been
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
    18
# replaced. Otherwise, the networking configuration tools could be confused.
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
    19
#
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
    20
#Before=network.service
2b9c78543663 Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents: 2390
diff changeset
    21
2189
002b978df979 Added first systemd support.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    22
[Service]
002b978df979 Added first systemd support.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    23
Type=oneshot
002b978df979 Added first systemd support.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    24
RemainAfterExit=yes
002b978df979 Added first systemd support.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    25
ExecStart=@prefix@/sbin/ethercatctl start
002b978df979 Added first systemd support.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    26
ExecStop=@prefix@/sbin/ethercatctl stop
2390
428ef1e462e4 Install ethercat service to multi-user target by default.
Florian Pose <fp@igh-essen.com>
parents: 2189
diff changeset
    27
428ef1e462e4 Install ethercat service to multi-user target by default.
Florian Pose <fp@igh-essen.com>
parents: 2189
diff changeset
    28
[Install]
428ef1e462e4 Install ethercat service to multi-user target by default.
Florian Pose <fp@igh-essen.com>
parents: 2189
diff changeset
    29
WantedBy=multi-user.target