| 1 | # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL |
| 2 | # SPDX-FileCopyrightText: 2021 Harald Sitter <[email protected]> |
| 3 | |
| 4 | [Unit] |
| 5 | Description=Socket to launch DrKonqi for a systemd-coredump crash |
| 6 | DefaultDependencies=no |
| 7 | ConditionUser=!@system |
| 8 | |
| 9 | [Socket] |
| 10 | # This is a bit problematic. Technically the user should be able to set the runtime dir via env as well, but we need |
| 11 | # a persistent location so the system-level service can talk to us :| |
| 12 | ListenSequentialPacket=/run/user/%U/drkonqi-coredump-launcher |
| 13 | SocketMode=0600 |
| 14 | Accept=yes |
| 15 | # Disable trigger limit for the benefit of older systemds |
| 16 | # TODO: remove in favor of PollLimitBurst mechanism once systemd 255 is in ubuntu LTS |
| 17 | TriggerLimitBurst=0 |
| 18 | # NB: this effectively also limits how many concurrent drkonqis run! |
| 19 | MaxConnections=16 |
| 20 | |
| 21 | [Install] |
| 22 | WantedBy=sockets.target |
| 23 | # Prevents trigger-limit-hit failure state by restarting the unit (systemd 250[?]) |
| 24 | UpheldBy=sockets.target |