]> git.pld-linux.org Git - packages/samba.git/commitdiff
- fix logrotate script for samba4 and add one for samba3
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 26 Aug 2013 09:30:21 +0000 (11:30 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 15 Jan 2014 18:06:11 +0000 (19:06 +0100)
- rel 2

samba.logrotate
samba3.logrotate [new file with mode: 0644]
samba4.spec

index 2f83b398ecebe3016dc53609b30374d6485d8d9e..64efd554ad9d174f68722ec95602b11648b52599 100644 (file)
@@ -4,6 +4,6 @@
        missingok
        olddir /var/log/archive/samba
        postrotate
-               /bin/killall -HUP nmbd smbd
+               /bin/killall -HUP samba
        endscript
 }
diff --git a/samba3.logrotate b/samba3.logrotate
new file mode 100644 (file)
index 0000000..2f83b39
--- /dev/null
@@ -0,0 +1,9 @@
+/var/log/samba/log.* {
+       sharedscripts
+       notifempty
+       missingok
+       olddir /var/log/archive/samba
+       postrotate
+               /bin/killall -HUP nmbd smbd
+       endscript
+}
index 06ca9b644a75c2cf0dc367ccf2753c72e102de16..2c42de4aa0cdba5d522167cb7faa88888f532902 100644 (file)
@@ -18,7 +18,7 @@ Summary:      Active Directory server
 Summary(pl.UTF-8):     Serwer Active Directory
 Name:          samba4
 Version:       4.0.9
-Release:       1
+Release:       2
 Epoch:         1
 License:       GPL v3
 Group:         Networking/Daemons
@@ -35,6 +35,7 @@ Source8:      winbind.sysconfig
 Source9:       samba.init
 Source10:      https://github.com/downloads/fumiyas/samba-virusfilter/samba-virusfilter-%{virusfilter_version}.tar.bz2
 # Source10-md5:        a3a30d5fbf309d356e8c5833db680c17
+Source11:      samba3.logrotate
 Patch0:                system-heimdal.patch
 Patch1:                samba-c++-nofail.patch
 Patch3:                samba-nscd.patch
@@ -838,6 +839,7 @@ cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
+cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/samba3
 cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
 cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/winbind
@@ -1552,6 +1554,7 @@ fi
 %defattr(644,root,root,755)
 %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smb.conf
 %attr(754,root,root) /etc/rc.d/init.d/smb
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/samba3
 %{systemdunitdir}/nmb.service
 %{systemdunitdir}/smb.service
 
This page took 0.050031 seconds and 4 git commands to generate.