| 1 | [Unit] |
| 2 | Description=irtt server bound to interface %i |
| 3 | After=network.target |
| 4 | BindsTo=sys-subsystem-net-devices-%i.device |
| 5 | After=sys-subsystem-net-devices-%i.device |
| 6 | Documentation=man:irtt(1) |
| 7 | Documentation=man:irtt-server(1) |
| 8 | |
| 9 | [Service] |
| 10 | ExecStart=/usr/bin/irtt server -b %%%i |
| 11 | User=nobody |
| 12 | Restart=on-failure |
| 13 | |
| 14 | # Sandboxing |
| 15 | # Some of these are not present in old versions of systemd. |
| 16 | # Comment out as appropriate. |
| 17 | PrivateTmp=yes |
| 18 | PrivateDevices=yes |
| 19 | ProtectControlGroups=yes |
| 20 | ProtectKernelTunables=yes |
| 21 | ProtectSystem=strict |
| 22 | ProtectHome=yes |
| 23 | NoNewPrivileges=yes |
| 24 | |
| 25 | [Install] |
| 26 | WantedBy=multi-user.target |