diff options
Diffstat (limited to 'meta-unit-users/classes')
| -rw-r--r-- | meta-unit-users/classes/enable-linger.bbclass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-unit-users/classes/enable-linger.bbclass b/meta-unit-users/classes/enable-linger.bbclass new file mode 100644 index 0000000..e464b9e --- /dev/null +++ b/meta-unit-users/classes/enable-linger.bbclass @@ -0,0 +1,9 @@ +do_install:append() { + # Enabling linger does two effects for systemd user units: + # 1. Units are automatically started after a reboot + # 2. Units are not automatically stopped after a log out + install -d ${D}${localstatedir}/lib/systemd/linger + touch ${D}${localstatedir}/lib/systemd/linger/${USER_TO_ADD_NAME} +} + +FILES:${PN}:append = " ${localstatedir}/lib/systemd/linger/${USER_TO_ADD_NAME}" |
