All of lore.kernel.org
 help / color / mirror / Atom feed
From: "JH" <jupiter.hce@gmail.com>
To: Yocto discussion list <yocto@yoctoproject.org>
Cc: OE <openembedded-core@lists.openembedded.org>
Subject: OE systemd RemainAfterExit does not work
Date: Wed, 15 Sep 2021 18:16:57 +1000	[thread overview]
Message-ID: <CAA=hcWSnctuvZNc=vcAn7-u6W3DHRiLLk2chhgNSyr4s=zNuqw@mail.gmail.com> (raw)

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

             reply	other threads:[~2021-09-15  8:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-15  8:16 JH [this message]
2021-09-15  8:40 ` [OE-core] OE systemd RemainAfterExit does not work Chen Qi
2021-09-15  8:32   ` JH
2021-09-15  8:55     ` Chen Qi
2021-09-15  9:59       ` JH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA=hcWSnctuvZNc=vcAn7-u6W3DHRiLLk2chhgNSyr4s=zNuqw@mail.gmail.com' \
    --to=jupiter.hce@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.