[systemd-devel] Cannot get Shutdown Script to Run (Libvirt Virtual Machine Shutdown)

Lennart Poettering lennart at poettering.net
Fri Oct 10 02:21:31 PDT 2014


On Fri, 10.10.14 01:35, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:

> On Thu, Oct 09, 2014 at 01:41:24AM +0200, Lennart Poettering wrote:
> > The ExecStart=/bin/true we just add because current systemd versions
> > refuse to run service units that have no ExecStart= set. It is on the
> > TODO list to allow services also when they have no ExecStart= but with
> > an ExecStop=, but this has not been implemented yet.
> Isn't this it:
> 
> commit 96fb8242cc1ef6b0e28f6c86a4f57950095dd7f1
> Author: Lennart Poettering <lennart at poettering.net>
> Date:   Thu Aug 21 18:50:42 2014 +0200
> 
>     service: allow services of Type=oneshot that specify no ExecStart= commands
>     
>     This is useful for services that simply want to run something on
>     shutdown, but not at bootup. They should only set ExecStop= but leave
>     ExecStart= unset.

Oh! Indeed! I am getting old! I start getting forgetful!

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list