]>
Commit | Line | Data |
---|---|---|
966b7f10 JR |
1 | # To set-up a new interface do the following (for example eth0): |
2 | # | |
3 | # ln -s /lib/systemd/system/ifup@.service \ | |
4 | # /etc/systemd/system/network.target.wants/ifcfg@eth0.service | |
bfc361f6 JR |
5 | # or |
6 | # cp -a /lib/systemd/system/ifup@.service \ | |
7 | # /etc/systemd/system/network.target.wants/ifcfg@eth0.service | |
8 | # if you have to edit this service | |
966b7f10 | 9 | # |
4b45bf2a TP |
10 | [Unit] |
11 | Description=Start ifup for %I | |
4b45bf2a TP |
12 | After=network.service |
13 | Wants=network.service | |
14 | Before=network-post.service | |
15 | ||
966b7f10 JR |
16 | # If it's a vlan/bridge/macvlan slave put required masters like this: |
17 | # | |
18 | #Before=ifcfg@eth0.service | |
19 | ||
4b45bf2a | 20 | [Service] |
ae5ad87b JR |
21 | ExecStart=/sbin/ifup %I boot |
22 | ExecStop=/sbin/ifdown %I boot | |
4b45bf2a TP |
23 | RemainAfterExit=true |
24 | Type=oneshot |