diff options
author | Chong.Lu@windriver.com <Chong.Lu@windriver.com> | 2014-10-30 18:23:03 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-11-24 11:58:30 +0100 |
commit | d4af902af7be7fb7568eb8fd73f34c431b78e7a6 (patch) | |
tree | 1af4faf590d9f4d64ffaf22be533bd699dd16ed2 /meta-oe | |
parent | 42e1f313417b8e62bd31bb836a3207cb9f450c5f (diff) | |
download | meta-openembedded-d4af902af7be7fb7568eb8fd73f34c431b78e7a6.tar.gz |
samba: fix error messages when startup samba service
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>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-connectivity/samba/samba.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta-oe/recipes-connectivity/samba/samba.inc b/meta-oe/recipes-connectivity/samba/samba.inc index a95f163c2..fd96bbe57 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 \ | |||
35 | --with-privatedir=${sysconfdir}/samba/private \ | 35 | --with-privatedir=${sysconfdir}/samba/private \ |
36 | --with-lockdir=${localstatedir}/lock \ | 36 | --with-lockdir=${localstatedir}/lock \ |
37 | --with-piddir=${localstatedir}/run \ | 37 | --with-piddir=${localstatedir}/run \ |
38 | --with-logfilebase=${localstatedir}/log \ | 38 | --with-logfilebase=${localstatedir}/log/samba \ |
39 | --libdir=${libdir} \ | 39 | --libdir=${libdir} \ |
40 | --with-mandir=${mandir} \ | 40 | --with-mandir=${mandir} \ |
41 | --with-swatdir=${datadir}/swat \ | 41 | --with-swatdir=${datadir}/swat \ |
@@ -125,6 +125,12 @@ do_install_append() { | |||
125 | sed -e 's,@BASE_BINDIR@,${base_bindir},g' \ | 125 | sed -e 's,@BASE_BINDIR@,${base_bindir},g' \ |
126 | -e 's,@SBINDIR@,${sbindir},g' \ | 126 | -e 's,@SBINDIR@,${sbindir},g' \ |
127 | -i ${D}${systemd_unitdir}/system/*.service | 127 | -i ${D}${systemd_unitdir}/system/*.service |
128 | |||
129 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
130 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
131 | echo "d ${localstatedir}/log/samba 0755 root root -" \ | ||
132 | > ${D}${sysconfdir}/tmpfiles.d/99-${BPN}.conf | ||
133 | fi | ||
128 | } | 134 | } |
129 | 135 | ||
130 | DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-systemctl-native', '', d)}" | 136 | DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-systemctl-native', '', d)}" |