Yocto Project Discussions
 help / color / mirror / Atom feed
From: "Khem Raj" <raj.khem@gmail.com>
To: srijan.nandi@gmail.com, yocto@lists.yoctoproject.org
Subject: Re: [yocto] #yocto systemd not able to start sshd after a reboot
Date: Mon, 21 Sep 2020 23:49:39 -0700	[thread overview]
Message-ID: <40f12cdc-6492-eba2-dc74-c2efdbe82aed@gmail.com> (raw)
In-Reply-To: <13648.1600690673184412823@lists.yoctoproject.org>



On 9/21/20 5:17 AM, srijan.nandi@gmail.com wrote:
>     /Seems that some leftovers from System V still reside in YOCTO...
>     Correct???

Yocto project supports sysvinit as init system option as well so no 
there are no leftovers.

>     /
> 
> Not sure about that.
> 
> The problem I faced was because there was a sshd.socket that had the 
> following line in it. The sshd.socket comes with openssh.
> 
> Conflicts=sshd.service
> 
> So I had two options. either to add the ExecStartPre in the sshd.service 
> file or to remove the Conflicts line in sshd.socket.
> 
> I choose to remove the Conflicts line and add the following in the 
> sshd.socket file.
> 
> After=network.target
> Before=sshd.service

Usually you use socket activation for sshd then you would enable 
sshd.socket and not sshd.service, socket will be listening on incoming 
connections on ssh port ( 22  by defaault ) and launch sshd.service 
whenever there is incoming ssh connection request. I suggest you should 
perhaps follow this approach as well, its also efficient due to its 
on-demand launch nature.

> 
> Thanks and Regards,
> -=Srijan Nandi
> 
> 
> 
> 
> 

  reply	other threads:[~2020-09-22  6:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-18 15:29 #yocto systemd not able to start sshd after a reboot srijan.nandi
2020-09-18 16:37 ` [yocto] " Khem Raj
2020-09-18 18:04   ` srijan.nandi
2020-09-19  3:10     ` [yocto] " Zoran
2020-09-19 13:12       ` srijan.nandi
2020-09-19 13:49         ` [yocto] " Zoran
2020-09-21 12:17           ` srijan.nandi
2020-09-22  6:49             ` Khem Raj [this message]
2020-09-21 13:22         ` [yocto] " Zoran
2020-09-21 17:09           ` srijan.nandi
2020-09-27 10:00 ` [yocto] " Zoran

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=40f12cdc-6492-eba2-dc74-c2efdbe82aed@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=srijan.nandi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox