etc/systemd
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=Raise network interfaces
|
||||
Documentation=man:interfaces(5)
|
||||
DefaultDependencies=no
|
||||
Wants=network.target ifupdown-pre.service
|
||||
After=local-fs.target network-pre.target apparmor.service systemd-sysctl.service systemd-modules-load.service ifupdown-pre.service
|
||||
Before=network.target shutdown.target network-online.target
|
||||
Conflicts=shutdown.target
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=-/etc/default/networking
|
||||
ExecStart=/usr/sbin/ifup -a --read-environment
|
||||
ExecStart=-/bin/sh -c 'if [ -f /run/network/restart-hotplug ]; then /usr/sbin/ifup -a --read-environment --allow=hotplug; fi'
|
||||
ExecStop=/usr/sbin/ifdown -a --read-environment --exclude=lo
|
||||
ExecStopPost=/usr/bin/touch /run/network/restart-hotplug
|
||||
RemainAfterExit=true
|
||||
TimeoutStartSec=5min
|
||||
Reference in New Issue
Block a user