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>
This commit is contained in:
Sunil Mohan Adapa 2025-04-04 15:54:28 -07:00 committed by James Valleroy
parent 7c14677277
commit 6d27d9610b
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -9,6 +9,7 @@ StartLimitIntervalSec=0
[Service]
Type=notify
ExecStart=/usr/bin/plinth
TimeoutSec=300s
Restart=on-failure
RestartSec=5
ExecReload=/bin/kill -HUP $MAINPID