mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
Allow plinth service to restart an unlimited number of times, with 5 seconds delay. Test: - After introducing an error in plinth startup code, the service is restarted every 5 seconds without limit. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
21 lines
372 B
Desktop File
21 lines
372 B
Desktop File
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
[Unit]
|
|
Description=FreedomBox Service (Plinth)
|
|
Documentation=man:plinth(1)
|
|
After=network.target
|
|
StartLimitIntervalSec=0
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/plinth
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
User=plinth
|
|
Group=plinth
|
|
StandardOutput=null
|
|
StandardError=null
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|