Debian Codegraph @

src/[email protected]

raw
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=HiPerConTracer Trigger Measurement %i
32 PartOf=hipercontracer.service
33 Documentation=man:hipercontracer-trigger(1)
34 After=network-online.target
35 Wants=network-online.target
36
37 [Service]
38 Type=simple
39 # NOTE: User will be changed to "hipercontracer" after startup!
40 User=root
41 Group=hipercontracer
42 WorkingDirectory=/var/hipercontracer/data
43 EnvironmentFile=/etc/hipercontracer/hpct-trigger-%i.conf
44 ExecStart=/bin/sh -cx "/usr/bin/hpct-trigger \
45 --user hipercontracer \
46 --loglevel ${LOGLEVEL} \
47 --measurement-id %i \
48 --resultsdirectory /var/hipercontracer/data \
49 --triggerpingage ${TRIGGER_PING_AGE} \
50 --triggerpingpacketsize ${TRIGGER_PING_PACKET_SIZE} \
51 --triggerpingsbeforequeuing ${TRIGGER_PINGS_BEFORE_QUEUING} \
52 ${HPCT_OPTIONS}"
53
54 KillSignal=SIGINT
55 KillMode=control-group
56 TimeoutStopSec=60
57 Restart=on-failure
58 RestartSec=60
59
60 ProtectSystem=true
61 ProtectHome=true
62 PrivateNetwork=no
63 PrivateTmp=yes
64 CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_CHOWN CAP_DAC_OVERRIDE LimitNPROC=64
65
66 [Install]
67 WantedBy=default.target