2017-11-18 19:35:03 +03:00
# SPDX-License-Identifier: LGPL-2.1+
#
2010-08-14 21:17:37 +04:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 02:20:58 +04:00
# 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
2010-08-14 21:17:37 +04:00
# (at your option) any later version.
[Unit]
2013-05-16 00:38:51 +04:00
Description = Load/Save Random Seed
2013-09-22 22:38:24 +04:00
Documentation = man:systemd-random-seed.service(8) man:random(4)
2010-08-14 21:17:37 +04:00
DefaultDependencies = no
2012-04-29 16:26:07 +04:00
RequiresMountsFor = @RANDOM_SEED@
2013-05-16 00:38:51 +04:00
Conflicts = shutdown.target
2014-08-26 23:17:22 +04:00
After = systemd-remount-fs.service
2019-08-05 02:05:54 +03:00
Before = shutdown.target
2016-08-13 18:15:19 +03:00
ConditionVirtualization = !container
2010-08-14 21:17:37 +04:00
[Service]
Type = oneshot
2013-05-16 00:38:51 +04:00
RemainAfterExit = yes
2010-08-17 05:29:46 +04:00
ExecStart = @rootlibexecdir@/systemd-random-seed load
2013-05-16 00:38:51 +04:00
ExecStop = @rootlibexecdir@/systemd-random-seed save
2019-07-22 14:51:30 +03:00
# This service waits until the kernel's entropy pool is initialized, and may be
# used as ordering barrier for service that require an initialized entropy
# pool. Since initialization can take a while on entropy-starved systems, let's
2020-05-22 10:39:36 +03:00
# increase the timeout substantially here.
2019-07-22 14:51:30 +03:00
TimeoutSec = 10min