| 1 |
[Unit] |
| 2 |
Description=Netscript ifup for %I |
| 3 |
After=local-fs.target network-pre.target apparmor.service systemd-sysctl.service |
| 4 |
Before=network.target shutdown.target network-online.target |
| 5 |
Conflicts=shutdown.target |
| 6 |
BindsTo=sys-subsystem-net-devices-%i.device |
| 7 |
DefaultDependencies=no |
| 8 |
IgnoreOnIsolate=yes |
| 9 |
|
| 10 |
[Service] |
| 11 |
# avoid stopping on shutdown via stopping system-ifup.slice |
| 12 |
Slice=system.slice |
| 13 |
ExecStart=/bin/sh -ec 'netscript ifup %I' |
| 14 |
ExecStop=/sbin/netscript ifdown %I |
| 15 |
RemainAfterExit=true |
| 16 |
TimeoutStartSec=5min |
| 17 |
|