]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-random-seed.service.in
units: rename/rework systemd-boot-system-token.service → systemd-boot-random-seed...
[thirdparty/systemd.git] / units / systemd-random-seed.service.in
CommitLineData
db9ecf05 1# SPDX-License-Identifier: LGPL-2.1-or-later
a7df2d1e 2#
ca2cab5d
LP
3# This file is part of systemd.
4#
5# systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
6# under the terms of the GNU Lesser General Public License as published by
7# the Free Software Foundation; either version 2.1 of the License, or
ca2cab5d
LP
8# (at your option) any later version.
9
10[Unit]
921fc451 11Description=Load/Save OS Random Seed
a0f70805 12Documentation=man:systemd-random-seed.service(8) man:random(4)
921fc451 13
ca2cab5d 14DefaultDependencies=no
059cc610 15RequiresMountsFor={{RANDOM_SEED}}
c35b956d 16Conflicts=shutdown.target
d6bc8348 17After=systemd-remount-fs.service
3af54f9b
HS
18Before=first-boot-complete.target shutdown.target
19Wants=first-boot-complete.target
921fc451 20
04d0f7e9 21ConditionVirtualization=!container
fe7f113c 22ConditionPathExists=!/etc/initrd-release
ca2cab5d
LP
23
24[Service]
25Type=oneshot
c35b956d 26RemainAfterExit=yes
059cc610
ZJS
27ExecStart={{ROOTLIBEXECDIR}}/systemd-random-seed load
28ExecStop={{ROOTLIBEXECDIR}}/systemd-random-seed save
26ded557
LP
29
30# This service waits until the kernel's entropy pool is initialized, and may be
31# used as ordering barrier for service that require an initialized entropy
32# pool. Since initialization can take a while on entropy-starved systems, let's
201632e3 33# increase the timeout substantially here.
26ded557 34TimeoutSec=10min