File: 2ping.service

package info (click to toggle)
2ping 4.5-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 492 kB
  • sloc: python: 3,304; makefile: 44; sh: 4
file content (36 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (3)
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
26
27
28
29
30
31
32
33
34
35
36
[Unit]
Description=2ping listener
Documentation=man:2ping(1)
Documentation=https://www.finnie.org/software/2ping/

# Recommended listener method is with python3-netifaces, so we want to
# wait until the network is up before starting, so we can get a full
# list of IPs.
Wants=network-online.target
After=network-online.target

[Service]
ExecStart=/usr/bin/2ping --listen --quiet

# 2ping requires very little; lock down the running space as much as
# possible.
DevicePolicy=closed
LockPersonality=yes
NoNewPrivileges=yes
PrivateDevices=yes
PrivateTmp=yes
PrivateUsers=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectSystem=strict
RestrictAddressFamilies=AF_NETLINK AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
User=nobody

[Install]
WantedBy=multi-user.target