File: netscript-2.4.netscript%40.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 (17 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=Netscript ifup for %I
After=local-fs.target network-pre.target apparmor.service systemd-sysctl.service
Before=network.target shutdown.target network-online.target
Conflicts=shutdown.target
BindsTo=sys-subsystem-net-devices-%i.device
DefaultDependencies=no
IgnoreOnIsolate=yes

[Service]
# avoid stopping on shutdown via stopping system-ifup.slice
Slice=system.slice
ExecStart=/bin/sh -ec 'netscript ifup %I'
ExecStop=/sbin/netscript ifdown %I
RemainAfterExit=true
TimeoutStartSec=5min