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

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Oct 9 16:35:04 PDT 2014


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.

Confused,
Zbyszek


More information about the systemd-devel mailing list