All of lore.kernel.org
 help / color / mirror / Atom feed
* OE systemd RemainAfterExit does not work
@ 2021-09-15  8:16 JH
  2021-09-15  8:40 ` [OE-core] " Chen Qi
  0 siblings, 1 reply; 5+ messages in thread
From: JH @ 2021-09-15  8:16 UTC (permalink / raw)
  To: Yocto discussion list; +Cc: OE

Hi,

I am running a logout systemd service to clean up in shutdown, the
service was called in boot but was not called in the shutdown process,
I double checked the mlogout.sh script which was not executed.

I tried RemainAfterExit=yes, it did not work either, what could I be missing?

# cat /lib/systemd/system/mlogout.service

[Unit]
Description=Logout clean job
After=syslog.target
DefaultDependencies=no

[Service]
Type=oneshot
ExecStop=/usr/bin/mlogout.sh
RemainAfterExit=true
# RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Thank you.

Kind regards,

- jupiter

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-15 10:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15  8:16 OE systemd RemainAfterExit does not work JH
2021-09-15  8:40 ` [OE-core] " Chen Qi
2021-09-15  8:32   ` JH
2021-09-15  8:55     ` Chen Qi
2021-09-15  9:59       ` JH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.