| 1 |
# ========================================================================== |
| 2 |
# _ _ _ ____ ____ _____ |
| 3 |
# | | | (_) _ \ ___ _ __ / ___|___ _ _|_ _| __ __ _ ___ ___ _ __ |
| 4 |
# | |_| | | |_) / _ \ '__| | / _ \| '_ \| || '__/ _` |/ __/ _ \ '__| |
| 5 |
# | _ | | __/ __/ | | |__| (_) | | | | || | | (_| | (_| __/ | |
| 6 |
# |_| |_|_|_| \___|_| \____\___/|_| |_|_||_| \__,_|\___\___|_| |
| 7 |
# |
| 8 |
# --- High-Performance Connectivity Tracer (HiPerConTracer) --- |
| 9 |
# https://www.nntb.no/~dreibh/hipercontracer/ |
| 10 |
# ========================================================================== |
| 11 |
# |
| 12 |
# High-Performance Connectivity Tracer (HiPerConTracer) |
| 13 |
# Copyright (C) 2015-2026 by Thomas Dreibholz |
| 14 |
# |
| 15 |
# This program is free software: you can redistribute it and/or modify |
| 16 |
# it under the terms of the GNU General Public License as published by |
| 17 |
# the Free Software Foundation, either version 3 of the License, or |
| 18 |
# (at your option) any later version. |
| 19 |
# |
| 20 |
# This program is distributed in the hope that it will be useful, |
| 21 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23 |
# GNU General Public License for more details. |
| 24 |
# |
| 25 |
# You should have received a copy of the GNU General Public License |
| 26 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 27 |
# |
| 28 |
# Contact: [email protected] |
| 29 |
|
| 30 |
[Unit] |
| 31 |
Description=UDP Echo Server |
| 32 |
Documentation=man:udp-echo-server(1) |
| 33 |
After=network.target |
| 34 |
|
| 35 |
[Service] |
| 36 |
Type=simple |
| 37 |
# Will change to user "nobody" after startup |
| 38 |
User=root |
| 39 |
KillMode=process |
| 40 |
Restart=on-failure |
| 41 |
EnvironmentFile=/etc/hipercontracer/udp-echo-server.conf |
| 42 |
ExecStart=/usr/bin/udp-echo-server \ |
| 43 |
--from-port "${FROM_PORT}" \ |
| 44 |
--to-port "${TO_PORT}" \ |
| 45 |
--user nobody |
| 46 |
CPUSchedulingPolicy=fifo |
| 47 |
CPUSchedulingPriority=99 |
| 48 |
IOSchedulingClass=realtime |
| 49 |
|
| 50 |
PrivateTmp=yes |
| 51 |
InaccessibleDirectories=/home |
| 52 |
# CapabilityBoundingSet= |
| 53 |
|
| 54 |
[Install] |
| 55 |
WantedBy=multi-user.target |