File: netscript-2.4.netscript.service

package info (click to toggle)
netscript-2.4 5.5.5%2Bnmu1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 480 kB
  • sloc: sh: 2,166; makefile: 86
file content (25 lines) | stat: -rw-r--r-- 760 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[Unit]
Description=Netscript network interfaces and iptables
Documentation=man:netscript(8)
DefaultDependencies=no
Wants=network.target
After=local-fs.target network-pre.target apparmor.service systemd-sysctl.service systemd-modules-load.service
#If you want to run openvswitch for software switching underneath 
# primary networking
#After=openvswitch-switch.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/netscript/network.conf
ExecStartPre=-/bin/sh -c '[ -n "$IF_AUTO" ] && udevadm settle'
ExecStart=/sbin/netscript start
ExecStop=/sbin/netscript stop
RemainAfterExit=true
TimeoutStartSec=5min