All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Nicolas Jeker" <n.jeker@delisys.ch>
To: Rudolf J Streif <rudolf.streif@ibeeto.com>, yasminebenghozzi6@gmail.com
Cc: Yocto <yocto@lists.yoctoproject.org>
Subject: Re: [yocto] Inactive service of hello world #yocto
Date: Wed, 08 Sep 2021 08:59:33 +0200	[thread overview]
Message-ID: <3ba5f7a2b2992751c07ba6bc4ff2afdecc22adc5.camel@delisys.ch> (raw)
In-Reply-To: <CAPxNcnf11pBQtfuQ9COipkOASuz6rjorHOTk+35bzHAtwUi-Bg@mail.gmail.com>

On Tue, 2021-09-07 at 10:43 -0700, Rudolf J Streif wrote:
> What does your 'Hello World' service do? Just print 'Hello World' to
> the console and then exit?
> 
> If so that would be the reason why it is inactive. Systemd starts it
> and then it exits. Typically, services keep running (except for some
> special cases) once they are started. That's what makes them a service.
> To stop them 'systemctl stop <service>' is used. By default systemctl
> sends SIGTERM to tell the service to clean up and terminate itself.
> 

To piggyback on that, it is possible to set Type=oneshot[1] for the
service so that systemd considers the service to be up after it exited.
I find it useful for init or migration scripts that another service can
then depend upon.

[1]:
https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type=


> :rjs
> 
> 
> On Tue, Sep 7, 2021, 10:20 <yasminebenghozzi6@gmail.com> wrote:
> > Hi everyone, 
> > 
> > I wanted to run the helloworld service, but it keeps telling that its
> > inactive , I really cant find why, I changed the service many times
> > but no solution.
> > I m sorry I ant copy paste from putty
> > 
> > 
> > 
> 
> 
> 



      reply	other threads:[~2021-09-08  6:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-07 17:20 Inactive service of hello world #yocto yasminebenghozzi6
2021-09-07 17:43 ` [yocto] " Rudolf J Streif
2021-09-08  6:59   ` Nicolas Jeker [this message]

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=3ba5f7a2b2992751c07ba6bc4ff2afdecc22adc5.camel@delisys.ch \
    --to=n.jeker@delisys.ch \
    --cc=rudolf.streif@ibeeto.com \
    --cc=yasminebenghozzi6@gmail.com \
    --cc=yocto@lists.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.