From 483d3baeb23b67aa1c95c14f097ee916e3cdd0bf Mon Sep 17 00:00:00 2001 From: Jannik Ahlers Date: Thu, 7 Sep 2017 09:43:54 +0200 Subject: [PATCH] Bug#44953: repaired reloading of smb.conf Signed-off-by: Jannik Ahlers --- services/univention-samba4/conffiles/etc/logrotate.d/samba | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/univention-samba4/conffiles/etc/logrotate.d/samba b/services/univention-samba4/conffiles/etc/logrotate.d/samba index 95c679e..2301361 100644 --- a/services/univention-samba4/conffiles/etc/logrotate.d/samba +++ b/services/univention-samba4/conffiles/etc/logrotate.d/samba @@ -9,7 +9,11 @@ for name in ('smbd', 'nmbd'): for setting in settings.keys(): print "\t%s" % settings[setting] print "\tpostrotate" - print "\t\t/usr/bin/killall -HUP /usr/sbin/%s" % name +#smdb does not handle SYSHUP correct at the moment, so smb.conf has to be reloaded in a different way. + if name == 'smbd': + print "\t\t/usr/bin/smbcontrol all reload-config" + else: + print "\t\t/usr/bin/killall -HUP /usr/sbin/%s" % name print "\tendscript" print "}" @!@ -- 2.7.4