systemd-random-seed.service 1.0 KB

123456789101112131415161718192021222324252627282930
  1. # SPDX-License-Identifier: LGPL-2.1+
  2. #
  3. # This file is part of systemd.
  4. #
  5. # systemd is free software; you can redistribute it and/or modify it
  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
  8. # (at your option) any later version.
  9. [Unit]
  10. Description=Load/Save Random Seed
  11. Documentation=man:systemd-random-seed.service(8) man:random(4)
  12. DefaultDependencies=no
  13. RequiresMountsFor=/var/lib/systemd/random-seed
  14. Conflicts=shutdown.target
  15. After=systemd-remount-fs.service
  16. Before=shutdown.target
  17. ConditionVirtualization=!container
  18. [Service]
  19. Type=oneshot
  20. RemainAfterExit=yes
  21. ExecStart=/lib/systemd/systemd-random-seed load
  22. ExecStop=/lib/systemd/systemd-random-seed save
  23. # This service waits until the kernel's entropy pool is initialized, and may be
  24. # used as ordering barrier for service that require an initialized entropy
  25. # pool. Since initialization can take a while on entropy-starved systems, let's
  26. # increase the time-out substantially here.
  27. TimeoutSec=10min