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

Kay Sievers kay.sievers at vrfy.org
Sun May 8 10:52:36 PDT 2011


On Sun, May 8, 2011 at 19:01,  <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?

You can install binaries in:
  /lib/systemd/system-shutdown/
which will be executed, right before systemd really shuts down.

Kay


More information about the systemd-devel mailing list