[systemd-devel] I need a killall.service in beta fc 15 (systemd installed by default)

Gustavo Sverzut Barbieri barbieri at profusion.mobi
Sun May 8 10:38:37 PDT 2011


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,  <Floydsmith at aol.com> 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
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
>



-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbieri at gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202


More information about the systemd-devel mailing list