From: Chong Lu <Chong.Lu@windriver.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: Re: [meta-oe][PATCH 2/2] samba: fix error messages when startup samba service
Date: Tue, 11 Nov 2014 10:19:37 +0800 [thread overview]
Message-ID: <54617239.1020609@windriver.com> (raw)
In-Reply-To: <1414664583-26791-2-git-send-email-Chong.Lu@windriver.com>
ping
//Chong
On 10/30/2014 06:23 PM, Chong Lu wrote:
> This solves the following error messages when startup samba:
>
> Unable to open new log file '/var/log/samba/log.smbd': No such file or directory
>
> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
> ---
> recipes-connectivity/samba/samba.inc | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/meta-oe/recipes-connectivity/samba/samba.inc b/meta-oe/recipes-connectivity/samba/samba.inc
> index 4392821..68e1b1f 100644
> --- a/meta-oe/recipes-connectivity/samba/samba.inc
> +++ b/meta-oe/recipes-connectivity/samba/samba.inc
> @@ -35,7 +35,7 @@ EXTRA_OECONF='--disable-cups \
> --with-privatedir=${sysconfdir}/samba/private \
> --with-lockdir=${localstatedir}/lock \
> --with-piddir=${localstatedir}/run \
> - --with-logfilebase=${localstatedir}/log \
> + --with-logfilebase=${localstatedir}/log/samba \
> --libdir=${libdir} \
> --with-mandir=${mandir} \
> --with-swatdir=${datadir}/swat \
> @@ -123,6 +123,12 @@ do_install_append() {
> sed -e 's,@BASE_BINDIR@,${base_bindir},g' \
> -e 's,@SBINDIR@,${sbindir},g' \
> -i ${D}${systemd_unitdir}/system/*.service
> +
> + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
> + install -d ${D}${sysconfdir}/tmpfiles.d
> + echo "d ${localstatedir}/log/samba 0755 root root -" \
> + > ${D}${sysconfdir}/tmpfiles.d/99-${BPN}.conf
> + fi
> }
>
> DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-systemctl-native', '', d)}"
next prev parent reply other threads:[~2014-11-11 2:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-30 10:23 [meta-oe][PATCH 1/2] samba: add winbind.service to winbind package Chong Lu
2014-10-30 10:23 ` [meta-oe][PATCH 2/2] samba: fix error messages when startup samba service Chong Lu
2014-11-11 2:19 ` Chong Lu [this message]
2014-11-11 2:19 ` [meta-oe][PATCH 1/2] samba: add winbind.service to winbind package Chong Lu
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=54617239.1020609@windriver.com \
--to=chong.lu@windriver.com \
--cc=openembedded-devel@lists.openembedded.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