| 1 | # SPDX-License-Identifier: AGPL-3.0-or-later |
| 2 | |
| 3 | [Unit] |
| 4 | Description=FreedomBox Privileged Service |
| 5 | Documentation=https://wiki.debian.org/FreedomBox/ |
| 6 | # Don't hit the start rate limiting. |
| 7 | StartLimitIntervalSec=0 |
| 8 | # Stop/restart along with .socket unit (invoked from dpkg scripts). |
| 9 | PartOf=freedombox-privileged.socket |
| 10 | # Uploaded files in /var/tmp/ are shared with FreedomBox web service. |
| 11 | JoinsNamespaceOf=plinth.service |
| 12 | |
| 13 | [Service] |
| 14 | Type=notify |
| 15 | ExecStart=/usr/lib/freedombox/freedombox-privileged |
| 16 | TimeoutSec=300s |
| 17 | User=root |
| 18 | Group=root |
| 19 | NotifyAccess=main |
| 20 | # Uploaded files in /var/tmp/ are shared with FreedomBox web service by joining |
| 21 | # namespaces. |
| 22 | PrivateTmp=yes |
| 23 | Restart=on-failure |
| 24 | # Don't restart too fast |
| 25 | RestartSec=1 |
| 26 | RestartSteps=3 |
| 27 | RestartMaxDelaySec=5 |