mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
vmspawn systems might take quite a while to boot in particular if they go through uefi and wait for a network lease. Hence let's increase the start timeout to 2min (from 45s). We'll do that for both nspawn and vmspawn, even though the UEFI thing certainly doesn't apply there (but the DHCP thing still does).
26 lines
680 B
SYSTEMD
26 lines
680 B
SYSTEMD
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#
|
|
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Virtual Machine %i
|
|
Documentation=man:systemd-vmspawn(1)
|
|
PartOf=machines.target
|
|
Before=machines.target
|
|
|
|
[Service]
|
|
ExecStart=systemd-vmspawn --quiet --keep-unit --register=yes --network-tap --machine=%i
|
|
KillMode=mixed
|
|
Type=notify
|
|
Slice=machine.slice
|
|
TimeoutSec=2min
|
|
{{SERVICE_WATCHDOG}}
|
|
|
|
[Install]
|
|
WantedBy=machines.target
|