]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: add Unit.Markers property
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 30 Jan 2021 15:58:19 +0000 (16:58 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 15 Feb 2021 19:49:14 +0000 (20:49 +0100)
commitff68472a20c208121b69ea13586f3105a219bc14
treeb0aa31b4fcbdaef50a0a12328926cbca40414699
parent8c2524c7fdb46d801594030504c6059afcde89fa
core: add Unit.Markers property

The property is never set by systemd, only reset after a stop or restart or
reload. It may externally be set to mark the unit for a later restart/reload.

I wasn't sure whether to configure the property only for the types where this
makes sense (Service, Swap, etc). But Restart() method is defined on the unit,
and also having this always under the same property name is more convenient.
man/org.freedesktop.systemd1.xml
src/basic/unit-def.c
src/basic/unit-def.h
src/core/dbus-unit.c
src/core/unit-serialize.c
src/core/unit.c
src/core/unit.h
src/udev/test-udev-builtin.c