FreedomBox/data/usr/lib/systemd/system/plinth.service
Sunil Mohan Adapa 6d27d9610b
service: Increase startup/shutdown timeout to 5 minutes
- From the default 90 seconds (system-wide). This is better when systems are
slow during bootup or have really slow disk IO.

Tests:

- When running 'systemctl start plinth' add a sleep of 120 seconds in main
before notification. The service stays in 'activating' state for 2 minutes but
then succeeds and becomes active.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-05 10:21:01 -04:00

25 lines
433 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]
Type=notify
ExecStart=/usr/bin/plinth
TimeoutSec=300s
Restart=on-failure
RestartSec=5
ExecReload=/bin/kill -HUP $MAINPID
User=plinth
Group=plinth
StandardOutput=null
StandardError=null
NotifyAccess=main
PrivateTmp=yes
[Install]
WantedBy=multi-user.target