2010-08-14 17:17:37 +00:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-11 22:20:58 +00: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 17:17:37 +00:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
2013-05-15 20:38:51 +00:00
|
|
|
Description=Load/Save Random Seed
|
2013-09-22 18:38:24 +00:00
|
|
|
Documentation=man:systemd-random-seed.service(8) man:random(4)
|
2010-08-14 17:17:37 +00:00
|
|
|
DefaultDependencies=no
|
2012-04-29 12:26:07 +00:00
|
|
|
RequiresMountsFor=@RANDOM_SEED@
|
2013-05-15 20:38:51 +00:00
|
|
|
Conflicts=shutdown.target
|
2014-08-26 19:17:22 +00:00
|
|
|
After=systemd-remount-fs.service
|
2013-05-15 20:38:51 +00:00
|
|
|
Before=sysinit.target shutdown.target
|
2010-08-14 17:17:37 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2013-05-15 20:38:51 +00:00
|
|
|
RemainAfterExit=yes
|
2010-08-17 01:29:46 +00:00
|
|
|
ExecStart=@rootlibexecdir@/systemd-random-seed load
|
2013-05-15 20:38:51 +00:00
|
|
|
ExecStop=@rootlibexecdir@/systemd-random-seed save
|
2015-04-17 01:41:18 +00:00
|
|
|
TimeoutSec=30s
|