| 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 Measurement %i |
| 32 | PartOf=hipercontracer.service |
| 33 | Documentation=man:hipercontracer(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/hipercontracer-%i.conf |
| 44 | ExecStart=/bin/sh -cx "/usr/bin/hipercontracer \ |
| 45 | --user hipercontracer \ |
| 46 | --loglevel ${LOGLEVEL} \ |
| 47 | --measurement-id %i \ |
| 48 | --resultsdirectory /var/hipercontracer/data \ |
| 49 | ${HPCT_OPTIONS}" |
| 50 | |
| 51 | KillSignal=SIGINT |
| 52 | KillMode=control-group |
| 53 | TimeoutStopSec=60 |
| 54 | Restart=on-failure |
| 55 | RestartSec=60 |
| 56 | |
| 57 | ProtectSystem=true |
| 58 | ProtectHome=true |
| 59 | PrivateNetwork=no |
| 60 | PrivateTmp=yes |
| 61 | CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_CHOWN CAP_DAC_OVERRIDE LimitNPROC=64 |
| 62 | |
| 63 | [Install] |
| 64 | WantedBy=default.target |