samba: systemv-init script must be executable
PATCH 1/1 samba: systemv-init script must be executable
Fix insane permissions installing SystemV init-script for samba4 to allow executing it correctly.
--- meta-oe/recipes-connectivity/samba/samba_4.1.12.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-connectivity/samba/samba_4.1.12.bb +1 -1
@@ -99,7 +99,7 @@ do_install_append() { > ${D}${sysconfdir}/tmpfiles.d/99-${BPN}.conf elif ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then install -d ${D}${sysconfdir}/init.d - install -m 0644 packaging/LSB/samba.sh ${D}${sysconfdir}/init.d + install -m 0755 packaging/LSB/samba.sh ${D}${sysconfdir}/init.d update-rc.d -r ${D} samba.sh start 20 3 5 . update-rc.d -r ${D} samba.sh start 20 0 1 6 . fi
Signature · 4 lines
1.9.1 -- Jens Rehsack - [email protected]
Quoted 5 lines · Jens Rehsack
Fix insane permissions installing SystemV init-script for samba4 to allow executing it correctly.
Signed-off-by Jens Rehsack <[email protected]>
The /etc/rc our sysvinit package provides will source the startup script rather than executing it if its name ends in .sh, so I don't really see why this would be necessary.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Quoted 5 lines
Am 04.11.2015 um 20:42 schrieb Christopher Larson <[email protected]>:
On Wed, Nov 4, 2015 at 11:09 AM, Jens Rehsack <[email protected]> wrote:
Quoted 8 lines
Quoted 5 lines
Fix insane permissions installing SystemV init-script for samba4 to allow executing it correctly.
Signed-off-by Jens Rehsack <[email protected]>The
/etc/rcour sysvinit package provides will source the startup script rather than executing it if its name ends in .sh, so I don't really see why
To allow people start/stop manually from shell?
$ /etc/init.d/samba.sh start $ /etc/init.d/samba.sh stop
Might be irrelevant in some situations, but generally such a script should be executable anyway - shouldn't it?
Cheers
Signature · 1 line
Jens Rehsack - [email protected]