Univention Bugzilla – Attachment 4447 Details for
Bug 26376
logrotate für samba4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Entsprechende Erweiterung für das UCR-Template für /etc/logrotate.d/univention-samba4. wichtig für kill -HUP nach dem logrotate.
20_logrotate.patch (text/plain), 864 bytes, created by
Arvid Requate
on 2012-06-19 11:37 CEST
(
hide
)
Description:
Entsprechende Erweiterung für das UCR-Template für /etc/logrotate.d/univention-samba4. wichtig für kill -HUP nach dem logrotate.
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2012-06-19 11:37 CEST
Size:
864 bytes
patch
obsolete
> * add logrotate for samba4 logs (Bug #26376) > >https://forge.univention.org/bugzilla/show_bug.cgi?id=26376 > >Index: conffiles/etc/logrotate.d/univention-samba4 >=================================================================== >--- univention-samba4-1.0.126.orig/conffiles/etc/logrotate.d/univention-samba4 (Revision 33501) >+++ univention-samba4-1.0.126/conffiles/etc/logrotate.d/univention-samba4 (Arbeitskopie) >@@ -16,4 +16,14 @@ > for setting in settings.keys(): > print "\t%s" % settings[setting] > print "}" >+ >+for name in ('samba', 'smbd', 'nmbd'): >+ settings = univention.lib.ucrLogrotate.getLogrotateConfig(name, configRegistry) >+ print "/var/log/samba/log.%s {" % name >+ for setting in settings.keys(): >+ print "\t%s" % settings[setting] >+ print "\tpostrotate" >+ print "\t\t/usr/bin/killall -HUP /usr/sbin/%s" % name >+ print "\tendscript" >+ print "}" > @!@
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 26376
:
4446
| 4447