Killall is done in systemd itself (pid1 process), and it is unlikely
that we'll have such a service shipped by systemd itself. Simply
because it is error prone, if you do it from pid1 you can be sure
you're the only expected pid to live (with exceptions required by dm
daemons and like).

However what you're trying to do is a valid case. Harald Hoyer just
send some code (not sure if it was integrated, check the git/mail
list) that umounts everything and pivot_root to a tmpfs with
scripts/binaries copied from a standard systemd location. That is safe
and grants things are in correct and safe state so you can operate
(even if that includes you mount the filesystem again so you can
backup files, run defrag, etc).

I guess that Harald can comment more on it.

BR,

On Sun, May 8, 2011 at 2:01 PM,  <[email protected]> wrote:
> I guess this might be somthing like:
> cd /
> ln -sf ../../../lib/systemd/system/3.target
> etc/systemd/system/default.target
> but with 3 replaced by 6 (for shutdown).
>
> I need such a service so that I on shutdown I can have a script (like
> killall) do custom things with the BIOS time and backup a few files.
>
> How to I create such a service?
>
> Any help will be greatly appreciated.
>
> Floyd,
>
> _______________________________________________
> systemd-devel mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
>



-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to