| 1 | # SPDX-License-Identifier: AGPL-3.0-or-later |
| 2 | |
| 3 | [Unit] |
| 4 | Description=FreedomBox Service (Plinth) |
| 5 | Documentation=man:plinth(1) |
| 6 | After=network.target |
| 7 | StartLimitIntervalSec=0 |
| 8 | # Uploaded files in /var/tmp/ are shared with FreedomBox privileged service. |
| 9 | JoinsNamespaceOf=freedombox-privileged.service |
| 10 | |
| 11 | [Service] |
| 12 | Type=notify |
| 13 | ExecStart=/usr/bin/plinth |
| 14 | TimeoutSec=300s |
| 15 | Restart=on-failure |
| 16 | RestartSec=5 |
| 17 | ExecReload=/bin/kill -HUP $MAINPID |
| 18 | User=plinth |
| 19 | Group=plinth |
| 20 | NotifyAccess=main |
| 21 | # Uploaded files in /var/tmp/ are shared with FreedomBox privileged service by |
| 22 | # joining namespaces. |
| 23 | PrivateTmp=yes |
| 24 | |
| 25 | [Install] |
| 26 | WantedBy=multi-user.target |