On Sun, Aug 19, 2012 at 01:33:09AM -0300, Gerardo Exequiel Pozzi wrote: > On 08/19/2012 01:23 AM, Gerardo Exequiel Pozzi wrote: > >On 08/19/2012 01:11 AM, Dave Reisner wrote: > >>On Sun, Aug 19, 2012 at 12:57:17AM -0300, Gerardo Exequiel Pozzi wrote: > >>>Signed-off-by: Gerardo Exequiel Pozzi <[email protected]> > >>>--- > >>> .../root-image/usr/lib/systemd/system/pacman-init.service | > >>>13 +++++++++++++ > >>> 1 file changed, 13 insertions(+) > >>> create mode 100644 > >>> configs/releng/root-image/usr/lib/systemd/system/pacman-init.service > >>> > >>>diff --git > >>>a/configs/releng/root-image/usr/lib/systemd/system/pacman-init.service > >>>b/configs/releng/root-image/usr/lib/systemd/system/pacman-init.service > >>>new file mode 100644 > >>>index 0000000..58a9271 > >>>--- /dev/null > >>>+++ b/configs/releng/root-image/usr/lib/systemd/system/pacman-init.service > >>>@@ -0,0 +1,13 @@ > >>>+[Unit] > >>>+Description=Initializes Pacman keyring > >>>+Wants=haveged.service > >>There should be an 'After=haveged.service' here as well > >OK thank you, this was my first unit :P > > Maybe can be a good idea to start also after ntpd ? to ensure that > time on machine is right...
Sure, imo the Wants should be Requires for haveged.service in pacman-init.service, and there should only be a Wants for ntpd.service in haveged.service. FYI: The difference between Wants and Requires is that a failure of a wanted unit to start won't prevent the unit with the dependency from starting. ntpd might not start properly if the network doesn't come up, and there's a bunch of reasons that might not happen. Still, the clock could be correct without the aid of ntpd running. d > >> > >>>+ > >>>+[Service] > >>>+Type=oneshot > >>>+RemainAfterExit=yes > >>>+ExecStart=/usr/bin/pacman-key --init > >>>+ExecStart=/usr/bin/pacman-key --populate archlinux > >>>+ExecStop=/bin/rm -rf /etc/pacman.d/gnupg > >>>+ > >>>+[Install] > >>>+WantedBy=multi-user.target > >>>-- > >>>1.7.11.5 > >>> > > > > > > > -- > Gerardo Exequiel Pozzi > \cos^2\alpha + \sin^2\alpha = 1 >
