Re: RFC: idea for a pstore systemd service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Di, 15.01.19 23:39, Jóhann B. Guðmundsson (johannbg@xxxxxxxxx) wrote:

>
> [Service]
> ExecStart=/bin/bash -c '/usr/bin/mv -t /var/lib/pstore /sys/fs/pstore/*'
> Restart=on-success

While this would certainly work, I think I'd prefer a version in C
and not depend on an installed shell for this. I mean, so far systemd
has been an excercise in keeping shell out of the default codepaths in
the boot process...

Moreover, we want a recognizable journal message (i.e. one with
MESSAGE_ID) to be generated when we move a file out of pstore, much
like we have it for coredumps and so on, and as soon as you do more
than just the basic "mv" it gets nastier and nastier to do this from
shell, while it is easy from C.

Lennart

--
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux