All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Wilson-Lindberg <GWilson@sakuraus.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: How to get mysqy/mariadb to start on powerup.
Date: Fri, 16 Mar 2018 21:58:23 +0000	[thread overview]
Message-ID: <5539c02c22f9476d884ae94dea20eb73@sakuraus.com> (raw)
In-Reply-To: <CAMKF1spQj+MOCbe0fxLax3rBQY_cbnuNyUsESSpegbzSX5HB_w@mail.gmail.com>


> -----Original Message-----
> From: Khem Raj [mailto:raj.khem@gmail.com]
> Sent: Friday, March 16, 2018 02:51 PM
> To: Greg Wilson-Lindberg <GWilson@sakuraus.com>
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] How to get mysqy/mariadb to start on powerup.
> 
> On Fri, Mar 16, 2018 at 2:22 PM, Greg Wilson-Lindberg <GWilson@sakuraus.com>
> wrote:
> >> -----Original Message-----
> >> From: Khem Raj [mailto:raj.khem@gmail.com]
> >> Sent: Friday, March 16, 2018 02:16 PM
> >> To: Greg Wilson-Lindberg <GWilson@sakuraus.com>
> >> Cc: yocto@yoctoproject.org
> >> Subject: Re: [yocto] How to get mysqy/mariadb to start on powerup.
> >>
> >> On Fri, Mar 16, 2018 at 2:10 PM, Greg Wilson-Lindberg
> >> <GWilson@sakuraus.com>
> >> wrote:
> >> >> -----Original Message-----
> >> >> From: Khem Raj [mailto:raj.khem@gmail.com]
> >> >> Sent: Friday, March 16, 2018 11:55 AM
> >> >> To: Greg Wilson-Lindberg <GWilson@sakuraus.com>
> >> >> Cc: yocto@yoctoproject.org
> >> >> Subject: Re: [yocto] How to get mysqy/mariadb to start on powerup.
> >> >>
> > ....
> > ....
> > ....
> >> >
> >> > I've run journalctl on both install_db.service & mysqld.service.
> >> > mysqld comes
> >> back with no entries. install_db comes back with a line each for
> >> Starting and Started Install MySQL Community Server Database.
> >> >
> >> > systemctl status returns exited success for install_db, for mysqld it reports
> Active:
> >> inactive (dead).
> >> >
> >> > systemctl list-unit-files shows install_db as enabled and mysqld as disabled.
> >> >
> >> > I was able to start mysqld with systemctl start and it showed
> >> > running with
> >> systemctl status & ps. But it did not restart after a reboot.
> >>
> >> can you try
> >>
> >> systemctl enable mysqld
> >>
> >> this should enable it to start on boot.
> >
> > That did create a link and it started on reboot.
> >
> 
> OK thats expected see ./meta-oe/recipes-dbs/mysql/mariadb.inc
> 
> SYSTEMD_PACKAGES = "${PN}-server ${PN}-setupdb"
> SYSTEMD_SERVICE_${PN}-server = "mysqld.service"
> SYSTEMD_AUTO_ENABLE_${PN}-server ?= "disable"
> 
> its disabled on install. you can set it to be enabled via a bbappend in your layer

So it seems that I should do a .bbappend with it enabled then.
Thanks,
Greg


> 
> > I take it that something is happening in install_db and among other things that link
> is not getting created?
> 
> its calling
> 
> mysql-systemd-start pre
> 
> but it depends on mysqld.service so I wonder if it was not working because
> mysqld.service was disabled so may be now it works

  reply	other threads:[~2018-03-16 21:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-15 20:38 How to get mysqy/mariadb to start on powerup Greg Wilson-Lindberg
2018-03-15 20:54 ` Khem Raj
2018-03-15 21:16   ` Greg Wilson-Lindberg
2018-03-16 15:58     ` Greg Wilson-Lindberg
2018-03-16 18:55       ` Khem Raj
2018-03-16 21:10         ` Greg Wilson-Lindberg
2018-03-16 21:15           ` Khem Raj
2018-03-16 21:22             ` Greg Wilson-Lindberg
2018-03-16 21:51               ` Khem Raj
2018-03-16 21:58                 ` Greg Wilson-Lindberg [this message]
2020-04-21 10:56                 ` slopez

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=5539c02c22f9476d884ae94dea20eb73@sakuraus.com \
    --to=gwilson@sakuraus.com \
    --cc=raj.khem@gmail.com \
    --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.