diff options
author | Chong.Lu@windriver.com <Chong.Lu@windriver.com> | 2014-10-30 18:23:03 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2014-12-26 17:47:21 -0800 |
commit | e324dd37cfc2f89eb9d392dac700416cd281db2c (patch) | |
tree | 592be9d8c60df54da2e0143dbc8e008611c8163b /meta-oe | |
parent | 80f3a32d734bab595ee88ef5aed718b4dc0b0c3c (diff) | |
download | meta-openembedded-e324dd37cfc2f89eb9d392dac700416cd281db2c.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>
Signed-off-by: Armin Kuster <akuster808@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 439282166..68e1b1f1c 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 \ |
@@ -123,6 +123,12 @@ do_install_append() { | |||
123 | sed -e 's,@BASE_BINDIR@,${base_bindir},g' \ | 123 | sed -e 's,@BASE_BINDIR@,${base_bindir},g' \ |
124 | -e 's,@SBINDIR@,${sbindir},g' \ | 124 | -e 's,@SBINDIR@,${sbindir},g' \ |
125 | -i ${D}${systemd_unitdir}/system/*.service | 125 | -i ${D}${systemd_unitdir}/system/*.service |
126 | |||
127 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
128 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
129 | echo "d ${localstatedir}/log/samba 0755 root root -" \ | ||
130 | > ${D}${sysconfdir}/tmpfiles.d/99-${BPN}.conf | ||
131 | fi | ||
126 | } | 132 | } |
127 | 133 | ||
128 | DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-systemctl-native', '', d)}" | 134 | DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-systemctl-native', '', d)}" |