diff --git a/amanda.spec b/amanda.spec index 04ea55d..2fdd188 100644 --- a/amanda.spec +++ b/amanda.spec @@ -10,7 +10,7 @@ Summary: A network-capable tape backup solution Name: amanda Version: 3.3.2 -Release: 3%{?dist} +Release: 4%{?dist} Source: http://downloads.sourceforge.net/amanda/amanda-%{version}.tar.gz Source1: amanda.crontab Source4: disklist @@ -18,6 +18,7 @@ Source8: amandahosts Source9: amanda.socket Source10: amanda@.service Source11: activate-devpay.1.gz +Source12: killpgrp.8 Patch2: amanda-3.1.1-xattrs.patch Patch3: amanda-3.1.1-tcpport.patch Patch6: amanda-3.2.0-config-dir.patch @@ -134,6 +135,7 @@ install -m 600 %SOURCE8 $RPM_BUILD_ROOT%{_localstatedir}/lib/amanda/.amandahosts install -p -m 644 -D %{SOURCE9} %{buildroot}%{_unitdir}/amanda.socket install -p -m 644 -D %{SOURCE10} %{buildroot}%{_unitdir}/amanda@.service install -D %{SOURCE11} %{buildroot}/%{_mandir}/man1/activate-devpay.1.gz +install -D %{SOURCE12} %{buildroot}/%{_mandir}/man8/killpgrp.8.gz ln -s %{_libexecdir}/amanda/amandad $RPM_BUILD_ROOT%{_sbindir}/amandad ln -s amrecover.8.gz $RPM_BUILD_ROOT%{_mandir}/man8/amoldrecover.8 @@ -269,6 +271,7 @@ rm -rf ${RPM_BUILD_ROOT} %{_mandir}/man8/amgpgcrypt.8* %{_mandir}/man8/amgetconf.8* %{_mandir}/man8/amcleanupdisk.8* +%{_mandir}/man8/killpgrp.8* %dir %{_sysconfdir}/amanda/ %dir %{_sysconfdir}/amanda/%defconfig @@ -445,6 +448,10 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Thu Jan 31 2013 Petr Hracek - 3.3.2-4 +- fix (#858703) add killpgrp(8) man page to the amanda-client package + (killpgrp will be removed from man-pages package) + * Thu Dec 06 2012 Lukáš Nykrýn - 3.3.2-3 - Fix group ownership - Add manpage for activate-devpay diff --git a/killpgrp.8 b/killpgrp.8 new file mode 100644 index 0000000..9745d3d --- /dev/null +++ b/killpgrp.8 @@ -0,0 +1,36 @@ +.\" This file is distributed in the hope that it will be useful, +.\" but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See +.\" the GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this file; if not, write to the Free Software +.\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, +.\" MA 02111-1307 USA +.\" +.\" HISTORY: +.\" 2006-05-16, created by Rodrigo Rubira Branco +.TH killpgrp 8 "May 16, 2006" "User Manuals" "User Manuals" +.SH NAME +killpgrp \- kill all processes in the same process group +.SH SYNOPSIS +.nf +.fam C +\fBkillpgrp\fP +.fam T +.fi +.SH DESCRIPTION +Kills all processes in its process group when a process group leader is killed. +.PP +This program needs to be called by the client uid defined in amanda, and is used to kill VDUMP, VXDUMP, and XFSDUMP in a safe manner. It is called by sendsize, the amanda client software. +.PP +killpgrp send a SIGTERM to all processes in its process group. If a process in the group does not exit after three seconds +and does not answer, killpgp will send a SIGKILL. +.SH OPTIONS +\fBkillpgrp\fP takes no arguments. +.SH SECURITY +\fBkillpgrp\fP needs to be setuid root unless amanda is compiled with DONT_SUID_ROOT. +.SH SEE ALSO +\fBamanda\fP(8) +.SH AUTHOR +Manpage written by Rodrigo Rubira Branco