| 1 |
[Unit] |
| 2 |
Description=Netscript network interfaces and iptables |
| 3 |
Documentation=man:netscript(8) |
| 4 |
DefaultDependencies=no |
| 5 |
Wants=network.target |
| 6 |
After=local-fs.target network-pre.target apparmor.service systemd-sysctl.service systemd-modules-load.service |
| 7 |
#If you want to run openvswitch for software switching underneath |
| 8 |
# primary networking |
| 9 |
#After=openvswitch-switch.service |
| 10 |
Before=network.target shutdown.target network-online.target |
| 11 |
Conflicts=shutdown.target |
| 12 |
|
| 13 |
[Install] |
| 14 |
WantedBy=multi-user.target |
| 15 |
WantedBy=network-online.target |
| 16 |
|
| 17 |
[Service] |
| 18 |
Type=oneshot |
| 19 |
EnvironmentFile=-/etc/netscript/network.conf |
| 20 |
ExecStartPre=-/bin/sh -c '[ -n "$IF_AUTO" ] && udevadm settle' |
| 21 |
ExecStart=/usr/sbin/netscript start |
| 22 |
ExecStop=/usr/sbin/netscript stop |
| 23 |
RemainAfterExit=true |
| 24 |
TimeoutStartSec=5min |
| 25 |
|