debian/0002755000000000000000000000000012436410045007167 5ustar debian/patches/0002755000000000000000000000000012436407364010630 5ustar debian/patches/ps-path.dpatch0000644000000000000000000000104612411731027013355 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run Fix path to ps. @DPATCH@ Index: killer-git/killer =================================================================== --- killer-git.orig/killer 2014-09-28 09:00:39.395965999 +0200 +++ killer-git/killer 2014-09-28 09:00:39.615967816 +0200 @@ -132,7 +132,7 @@ =cut # On HP-UX be sure that env var UNIX95 is defined for ps -o to work! -my $pscmd = '/usr/bin/ps -e -o "user ruser uid ruid tty pid ppid nice comm"'; +my $pscmd = '/bin/ps -e -o "user ruser uid ruid tty pid ppid nice comm"'; my $errmsg; debian/patches/ignore-system-uids.dpatch0000644000000000000000000000173312411731027015553 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run Make sure to not kill processes for system users (uid < 1000). @DPATCH@ Index: killer-git/killer =================================================================== --- killer-git.orig/killer 2014-09-28 09:00:39.171964143 +0200 +++ killer-git/killer 2014-09-28 09:00:39.395965999 +0200 @@ -1088,6 +1088,14 @@ my @validusers = ( 'condor', 'root', 'daemon' ); +=item $minuid + +Do not kill processes of users with uid lower than this value. + +=cut + +my $minuid = 1000; + =item $maxidletime The maximum number of seconds that a user can be idle without being @@ -1126,6 +1134,7 @@ my @ttys; my @users; my $user; +my $uid; =head2 gatherInfo @@ -1207,6 +1216,16 @@ } =item * + +Removes all processes of users with uid lower than the $minuid value. + +=cut + + foreach $uid ( 0 .. $minuid-1 ) { + $ptable->removeProcesses('uid', $uid); + } + +=item * Finally, the process table and terminal objects are returned. debian/patches/linux-ps-longusernames.dpatch0000644000000000000000000000147712411731031016443 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run Improve handling of long usernames on Linux, where ps will print the uid if the username is more than 8 characters logn. - Petter Reinholdtsen 2008-07-06 @DPATCH@ Index: killer-git/killer =================================================================== --- killer-git.orig/killer 2014-09-28 09:00:41.287981677 +0200 +++ killer-git/killer 2014-09-28 09:00:41.507983499 +0200 @@ -238,7 +238,11 @@ ($user, $ruser, $uid, $ruid, $tty, $pid, $ppid, $nice, $comm) = split( /[ \t]+/, $_, 9 ); - + + # Linux ps report uid when username is longer than 8 characters. + $user = (getpwuid($user))[0] if ($user =~ m/^\d+/); + $ruser = (getpwuid($ruser))[0] if ($ruser =~ m/^\d+/); + $pid2user{$pid} = $user; $pid2ruser{$pid} = $ruser; $pid2uid{$pid} = int $uid; debian/patches/handle-ps-name-truncate.patch0000644000000000000000000000070112436407364016261 0ustar Description: ps has changed it format and n to not truncate username. Author: Petter Reinholdtsen --- --- killer-0.90.orig/killer +++ killer-0.90/killer @@ -140,7 +140,7 @@ killed. =cut # On HP-UX be sure that env var UNIX95 is defined for ps -o to work! -my $pscmd = '/bin/ps -e -o "user ruser uid ruid tty pid ppid nice comm"'; +my $pscmd = '/bin/ps -e -o "user ruser uid ruid tty pid ppid nice comm" n'; my $errmsg; debian/patches/no-kill-opt.dpatch0000644000000000000000000000567312411731030014152 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run New option -n to not kill, just print out what would be killed. @DPATCH@ Index: killer-git/killer =================================================================== --- killer-git.orig/killer 2014-09-28 09:00:39.831969617 +0200 +++ killer-git/killer 2014-09-28 09:00:40.207972731 +0200 @@ -36,7 +36,7 @@ =head1 SYNOPSIS -killer [B<-h>] [B<-V>] +killer [B<-h>] [B<-V>] [B<-n>] [B<-d>] =head1 DESCRIPTION @@ -66,6 +66,14 @@ Display version number +=item -n + +Do not kill, just print what would be killed + +=item -d + +Enable debug output + =back =cut @@ -145,6 +153,8 @@ my %pid2nice = (); # nice value my %pid2comm = (); # Command name being executed my %remainingprocs = (); # The processes that have not been eliminated +my $noop = 0; +my $debug = 0; =head2 new @@ -220,7 +230,7 @@ # skip the first line of input ; while () { - #print "\t$_"; + print "\t$_" if $debug; chop; # strip leading white space @@ -805,11 +815,16 @@ my $killcount = 0; foreach my $pid ( keys %remainingprocs ) { - if ( kill($signum, $pid) > 0 ) { - $killcount ++; - syslog('info', "kill($signum, $pid) user=%s command=%s nice=%d", + my $msg = sprintf("kill($signum, $pid) user=%s command=%s nice=%d", $pid2ruser{$pid}, $pid2comm{$pid}, $pid2nice{$pid}); + if ($noop) { + print "$msg\n"; + } else { + if ( kill($signum, $pid) > 0 ) { + $killcount ++; + syslog('info', "%s", $msg); + } } } return $killcount; @@ -1020,6 +1035,14 @@ print STDERR "Type \"perldoc $0\" for lots of help.\n"; next; }; + $opt eq '-n' && do { + $noop = 1; + next; + }; + $opt eq '-d' && do { + $debug = 1; + next; + }; $opt eq '-V' && do { print STDERR "killer version $version\n"; next; @@ -1027,7 +1050,7 @@ print STDERR "killer: option \"$opt\" not recognized\n"; print STDERR "Type \"perldoc $0\" for lots of help.\n"; } - exit(1); + exit(1) unless ($noop || $debug); } =head1 PACKAGE main @@ -1297,7 +1320,7 @@ print $outfile "Attempt 1: Nicely killing the following processes\n"; $ptable->printRemainingProcesses($outfile); $ptable->killAll(15); -sleep(30); +sleep(30) unless $noop; $ptable->killAll(9); # ######### @@ -1307,7 +1330,7 @@ # be spawned. This should catch fork() bombs as well # ########## -sleep(5); +sleep(5) unless $noop; ($ptable, $term) = gatherInfo(); ( @remaining ) = $ptable->getRemainingProcesses(); if ( $#remaining == -1 ) { @@ -1329,7 +1352,7 @@ # the processes. Let's just whine through email. # ######## -sleep(5); +sleep(5) unless $noop; ($ptable, $term) = gatherInfo(); ( @remaining ) = $ptable->getRemainingProcesses(); if ( $#remaining == -1 ) { debian/patches/consoleuser-xprintidle.patch0000644000000000000000000000241312414024310016346 0ustar Description: Use xprintidle to figure out X session idle time. Author: Petter Reinholdtsen Bug-Debian: http://bugs.debian.org/714477 Last-Update: 2014-09-28 Index: killer-git/killer =================================================================== --- killer-git.orig/killer 2014-09-28 16:10:44.722364585 +0200 +++ killer-git/killer 2014-09-28 16:15:15.760683657 +0200 @@ -975,6 +975,26 @@ } +=head2 getX11IdleTime user + +Figure out how long a user has been idle in X11. Return the seconds +of idle time. + +=cut + +sub getX11IdleTime($) { + my $self = shift; + my ( $user ) = @_; + my $idletime_ms = `su $user -c 'DISPLAY=:0 xprintidle' 2>/dev/null < /dev/null`; + chomp $idletime_ms; + if ($idletime_ms =~ m/\d+/) { + print "Local user $user X idle time is $idletime_ms ms\n" if $debug; + return $idletime_ms / 1000; + } else { + return undef; + } +} + =head2 getIdleTime user Figure out how long a user has been idle. This is accomplished by @@ -1019,6 +1038,10 @@ $idletime = (time - $statparts[8]); } } + my $xidletime = $self->getX11IdleTime($user); + if (defined $xidletime && $idletime > $xidletime) { + $idletime = $xidletime; + } } return $idletime; } debian/patches/proper-clean.dpatch0000644000000000000000000000105412411731030014361 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run Remove generated files. @DPATCH@ Index: killer-git/Makefile =================================================================== --- killer-git.orig/Makefile 2014-09-28 09:00:26.239856962 +0200 +++ killer-git/Makefile 2014-09-28 09:00:40.015971131 +0200 @@ -19,7 +19,7 @@ pod2text $(SCRIPTNAME) > $(SCRIPTNAME).txt clean: - -rm -f $(TARGETS) pod2html-*cache + -rm -f $(TARGETS) pod2html-*cache pod2htm*.tmp install: @echo "You probably want to customize the script then copy it into place yourself." 1>&2 debian/patches/posix-locale.dpatch0000644000000000000000000000077112411731030014376 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run Make sure all processes have a well defined locale. @DPATCH@ Index: killer-git/killer =================================================================== --- killer-git.orig/killer 2014-09-28 09:00:40.207972731 +0200 +++ killer-git/killer 2014-09-28 09:00:40.427974549 +0200 @@ -1139,6 +1139,8 @@ # End of (intended) configuration options. # ######## +$ENV{LC_ALL} = 'POSIX'; + =back If I am a user really trying to avoid a background job killer, I would debian/patches/linux-nice-level.dpatch0000644000000000000000000000177612411731030015165 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run Reduce nice limit from 20 (impossible on Linux as 19 is max) to 9. Using nice with no arguments set nice level to 10, and those should be allowed to live, I believe. - Petter Reinholdtsen 2008-02-20 @DPATCH@ Index: killer-git/killer =================================================================== --- killer-git.orig/killer 2014-09-28 09:00:40.643976329 +0200 +++ killer-git/killer 2014-09-28 09:00:40.859978137 +0200 @@ -665,8 +665,8 @@ =head2 removeNiceJobs -This function removes all jobs that have a nice value greater than 20. -That is, they have a lower sceduling priority than the default. +This function removes all jobs that have a nice value greater than 9. +That is, they have a lower sceduling priority than the default (0). Example: @@ -684,7 +684,7 @@ # Get rid of things not in the "default" scheduling class next unless ($val =~ /^[0-9]+$/); - if ( int($val) > 20 ) { + if ( int($val) > 9 ) { $self->removeProcessId($key); } } debian/patches/consoleuser-logind.patch0000644000000000000000000000161512412044174015453 0ustar Description: Use loginctl to find consoleuser if who and consolekit fail. Author: Petter Reinholdtsen Last-Update: 2014-09-28 --- killer-0.90.orig/killer +++ killer-0.90/killer @@ -931,6 +931,23 @@ sub initialize { close(W); } } + + # FIXME figure out how to handle several console users for multiseat machine + my $loginctlcmd = "/bin/loginctl"; + if ( ! $consoleuser && -x $loginctlcmd) { + print "found no console user using who or consolekit, trying logind\n" if $debug; + if (open ( W, "$loginctlcmd|")) { + while ( ) { + chomp; + if (/^\s*(\d+)\s+(\d+)\s+(\w+)\s*seat\d+/) { + $consoleuser = $3; + print "Found local logind user $consoleuser\n" if $debug; + } + } + close(W); + } + } + return; } debian/patches/update-valid-users.dpatch0000644000000000000000000000111012411731031015502 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run Added nobody as a valid user whose processes won't be killed. There are several daemons that run under that login - José L. Redrejo Rodríguez 2008-02-26 @DPATCH@ Index: killer-git/killer =================================================================== --- killer-git.orig/killer 2014-09-28 09:00:41.079979958 +0200 +++ killer-git/killer 2014-09-28 09:00:41.287981677 +0200 @@ -1115,7 +1115,7 @@ =cut -my @validusers = ( 'condor', 'root', 'daemon' ); +my @validusers = ( 'condor', 'root', 'daemon', 'nobody' ); =item $minuid debian/patches/x-console.dpatch0000644000000000000000000000221312414035246013710 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run Detect kdm and gdm logins as console users. In that case jump over the initializeTty routine. This is example output from who in this case: % who kdmuser :0 2008-01-22 15:58 % % who gdmuser tty7 2008-02-14 20:21 (:0) % @DPATCH@ Index: killer-git/killer =================================================================== --- killer-git.orig/killer 2014-09-28 09:00:39.615967816 +0200 +++ killer-git/killer 2014-09-28 09:00:39.831969617 +0200 @@ -876,10 +876,16 @@ while ( ) { chop; @parts = split(/[ \t]+/); - if ( $parts[1] eq 'console' ) { - $consoleuser = $parts[0]; - } - $self->initializeTty($parts[1], stat("/dev/" . $parts[1])); + if ( $parts[1] eq 'console' + || $parts[1] =~ '^:\d+$' # kdm + || $parts[1] =~ '^tty\d$' # gdm + ) { + $consoleuser = $parts[0]; + $tty2idletime{$parts[1]}=0; # do not kill processes for the console user (set idle time to 0) + push (@{$user2ttys{$consoleuser}}, $parts[1]); + } else { + $self->initializeTty($parts[1], stat("/dev/" . $parts[1])); + } } close(W); } debian/patches/consoleuser-consolekit.patch0000644000000000000000000000521312414041112016336 0ustar Description: Use consolekit to find console users if 'who' do not find anyone. Use ck-list-sessions ot find the console users of 'who' have none listed. Author: Petter Reinholdtsen Bug-Debian: http://bugs.debian.org/714428 Last-Update: 2014-09-28 Index: killer-git/killer =================================================================== --- killer-git.orig/killer 2014-09-28 19:39:33.121975224 +0200 +++ killer-git/killer 2014-09-28 19:40:31.302428667 +0200 @@ -890,23 +890,48 @@ $consoleuser = ""; - open ( W, "$whocmd|") || return; - - while ( ) { - chop; - @parts = split(/[ \t]+/); - if ( $parts[1] eq 'console' - || $parts[1] =~ '^:\d+$' # kdm - || $parts[1] =~ '^tty\d$' # gdm - ) { - $consoleuser = $parts[0]; - $tty2idletime{$parts[1]}=0; # do not kill processes for the console user (set idle time to 0) - push (@{$user2ttys{$consoleuser}}, $parts[1]); - } else { - $self->initializeTty($parts[1], stat("/dev/" . $parts[1])); + if (open ( W, "$whocmd|")) { + while ( ) { + chop; + @parts = split(/[ \t]+/); + if ( $parts[1] eq 'console' + || $parts[1] =~ '^:\d+$' # kdm + || $parts[1] =~ '^tty\d$' # gdm + ) { + $consoleuser = $parts[0]; + $tty2idletime{$parts[1]}=0; # do not kill processes for the console user (set idle time to 0) + push (@{$user2ttys{$consoleuser}}, $parts[1]); + } else { + $self->initializeTty($parts[1], stat("/dev/" . $parts[1])); + } + } + close(W); } + # FIXME figure out how to handle several console users for multiseat machine + my $consolekitcmd = '/usr/bin/ck-list-sessions'; + if ( ! $consoleuser && -x $consolekitcmd) { + print "found no console user using who, trying consolekit\n" if $debug; + if (open ( W, "$consolekitcmd|")) { + my $uid; + my $user; + while ( ) { + chomp; + if (/^\tunix-user = '(\d+)'/) { + $uid = $1; + $user = (getpwuid($uid))[0]; + print "Found consolekit user $user / $uid\n" if $debug; + } + if (/^\tis-local = (.+)$/) { + if ('TRUE' eq $1) { + $consoleuser = $user; + print "Found local consolekit user $user\n" if $debug; + } + } + } + close(W); + } } - close(W); + return; } =head2 showConsoleUser debian/patches/series0000644000000000000000000000052512412044136012031 0ustar empty-domain.dpatch ignore-system-uids.dpatch ps-path.dpatch x-console.dpatch proper-clean.dpatch no-kill-opt.dpatch posix-locale.dpatch console-devs.dpatch linux-nice-level.dpatch default-email.dpatch update-valid-users.dpatch linux-ps-longusernames.dpatch consoleuser-consolekit.patch consoleuser-xprintidle.patch consoleuser-logind.patch debian/patches/console-devs.dpatch0000644000000000000000000000116212411731030014373 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run Check relevant devices for console access. @DPATCH@ Index: killer-git/killer =================================================================== --- killer-git.orig/killer 2014-09-28 09:00:40.427974549 +0200 +++ killer-git/killer 2014-09-28 09:00:40.643976329 +0200 @@ -984,7 +984,7 @@ if ( $consoleuser eq $user ) { my (@statparts, $device); foreach $device ( '/dev/ps2mouse', '/dev/ps2kbd', '/dev/mouse', - '/dev/kbd' ) { + '/dev/kbd', '/dev/input/mice' ) { @statparts = stat($device); next unless defined($statparts[8]); debian/patches/default-email.dpatch0000644000000000000000000000132212411731031014502 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run Change default email to use when reporting problems. @DPATCH@ Index: killer-git/killer =================================================================== --- killer-git.orig/killer 2014-09-28 09:00:40.859978137 +0200 +++ killer-git/killer 2014-09-28 09:00:41.079979958 +0200 @@ -1083,7 +1083,7 @@ =cut -my $forkadmin = "killer\@$domainname"; +my $forkadmin = "root\@$domainname"; =item $killadmin @@ -1091,7 +1091,7 @@ =cut -my $killadmin = "killer\@$domainname"; +my $killadmin = "root\@$domainname"; =item $fromaddr @@ -1107,7 +1107,7 @@ =cut -my $stubbornadmin = "killer\@$domainname"; +my $stubbornadmin = "root\@$domainname"; =item @validusers debian/patches/empty-domain.dpatch0000644000000000000000000000151012411731027014400 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run Use 'localhost' as domain if it is currently unset. Use /etc/mailname or DNS domain and not NIS domain when figuring out what to use after @ in email addresses. See also bugs #656297 and #673371. @DPATCH@ Index: killer-git/killer =================================================================== --- killer-git.orig/killer 2014-09-28 09:00:26.591859878 +0200 +++ killer-git/killer 2014-09-28 09:00:39.171964143 +0200 @@ -1042,8 +1042,11 @@ # Configuration options: # ######## -my $domainname = `domainname`; +# Prefer mailname, use dnsdomainname if it was unset, and fall back to localhost +# if both are blank. +my $domainname = `cat /etc/mailname 2>/dev/null || dnsdomainname 2>/dev/null || true`; chop $domainname; +$domainname = "localhost" unless ($domainname); =item $forkadmin debian/rules0000755000000000000000000000064312346017501010250 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/class/makefile.mk include /usr/share/cdbs/1/rules/debhelper.mk DEB_MAKE_CLEAN_TARGET = clean DEB_INSTALL_DOCS_ALL = ChangeLog DESTDIR = debian/$(cdbs_curpkg)$(pkgdir) bindir = /usr/sbin man1dir = /usr/share/man/man1 install/killer:: install -d $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) install killer $(DESTDIR)$(bindir) install -m 644 killer.1 $(DESTDIR)$(man1dir) debian/cron.hourly0000644000000000000000000000010212346017113011362 0ustar #!/bin/sh if [ -x /usr/sbin/killer ] ; then /usr/sbin/killer; fi debian/changelog0000644000000000000000000001324412436407777011065 0ustar killer (0.90-12) unstable; urgency=low [ Alexander Alemayhu ] * Handle ps format changes (Closes: #771449). -- Petter Reinholdtsen Sat, 29 Nov 2014 19:26:57 +0100 killer (0.90-11) unstable; urgency=high * Adjust consoleuser-xprintidle.patch to avoid unwanted line break in debug output. * Improve x-console.dpatch, make it more clear why $tty2idletime is set to zero. -- Petter Reinholdtsen Sat, 04 Oct 2014 20:54:42 +0200 killer (0.90-10) unstable; urgency=medium * Update empty-domain.dpatch to prefer /etc/mailname over the dnsdomainname output when generating mail addresses (Closes: 673371). * Refresh all patches to reflect the new line numbers. * Restructure control file lists to be more friendly to line based version control systems. * Update standard-version from 3.9.5 to 3.9.6. No changes needed. * Add new patch consoleuser-consolekit.patch to fall back to ck-list-sessions if it exist for finding local sessions if 'who' do not list any (Closes: #714428). * Add new patch consoleuser-logind.patch to use loginctl to find local sessions if 'who' and consolekit both fail. * Use xprintidle to figure out how long the X session have been unused (Closes: #714477). -- Petter Reinholdtsen Sun, 28 Sep 2014 19:44:10 +0200 killer (0.90-9) unstable; urgency=medium [ Alexander Alemayhu ] * debian/control: - Update Vcs-* control fields. - Update standard-version from 3.9.2 to 3.9.5. [ Petter Reinholdtsen ] * Switch from dpatch to source format 3.0 (quilt). * Add Alexander Alemayhu as uploader. -- Petter Reinholdtsen Wed, 11 Jun 2014 14:51:35 +0200 killer (0.90-8) unstable; urgency=low * Change empty-domain.dpatch to fetch mail domain from DNS domain and not NIS domain (Closes: #656297). * Adjust cron job to return exit code 0 also when the package is removed but not purged (Closes: #586199). * Update standards-version from 3.8.0 to 3.9.2. No changes needed. * Update debhelper compat level from 5 to 8. * Adjust copyright file to get lintian to discover the copyright statement. * Add README.source to keep lintian happy. -- Petter Reinholdtsen Wed, 18 Jan 2012 10:13:58 +0100 killer (0.90-7~lenny1) stable; urgency=low * Upload to stable. -- Petter Reinholdtsen Tue, 26 Jan 2010 13:27:36 +0100 killer (0.90-7) unstable; urgency=low * Fix linux-ps-longusernames.dpatch to also handle long usernames in ruser, to avoid killing processes of user with usernames > 8 characters (Closes: #551753). -- Petter Reinholdtsen Mon, 25 Jan 2010 19:03:03 +0100 killer (0.90-6) unstable; urgency=low * Fix typo in linux-ps-longusernames.dpatch, returning the password hash instead of the username. -- Petter Reinholdtsen Mon, 7 Jul 2008 10:29:42 +0200 killer (0.90-5) unstable; urgency=low * Rewrite patch x-console to drop code to use uid instead of username for console users. It was based on a misunderstanding regarding the source of the uids (Closes: #467499). * New patch linux-ps-longusernames to look up uids returned from ps to get the usernames, to work around the misfeature in ps only showing uids for users with usernames > 8 characters. * Change kdm console detection code to recognize any X display, not just :0. * Updated standards-version from 3.7.3 to 3.8.0. No changes needed. -- Petter Reinholdtsen Sun, 6 Jul 2008 12:46:16 +0200 killer (0.90-4) unstable; urgency=low [ José L. Redrejo Rodríguez ] * Use getent to get the uid as getpwname does not work correctly with ldap authenticated users. [ Petter Reinholdtsen ] * Fix typos in the package description (Closes: #470017). -- Petter Reinholdtsen Sun, 16 Mar 2008 11:37:35 +0100 killer (0.90-3) unstable; urgency=low [ Petter Reinholdtsen ] * Added patch linux-nice-level to deduce nice limit from 20 (impossible on Linux as 19 is max) to 9. * Added patch default-email to change default emails from killer@ to root@. * Make package group maintained by Debian Edu and add José L. Redrejo Rodríguez as uploader. * debian/patches/x-console.dpatch modified to avoid killing the user logged via gdm/kdm * Add Vcs-Svn and Vcs-Browse headers to the control file. [ José L. Redrejo Rodríguez ] * Modify how console users idle time is calculated. * debian/patches/update-valid-users.dpatch to avoid killing daemons running under the nobody login. -- Petter Reinholdtsen Wed, 27 Feb 2008 08:22:07 +0100 killer (0.90-2) unstable; urgency=low * Split all patches into separate files in debian/patch, to make them easier to submit upstream. Uses dpatch. * Added patch to handle kdm and gdm logins better. * Added patch to implement new option -n to tryrun only (not killing anything) and -d for debug output. * Make sure to use LC_ALL=POSIX to avoid different output depending on locale. * Add /dev/input/mice to list of devices to check for the console user. -- Petter Reinholdtsen Sat, 16 Feb 2008 14:30:41 +0100 killer (0.90-1) unstable; urgency=low * Initial upload (Closes: #463161). * Patches relative to upstream: - Do not kill processes belonging to users with uid below 1000. - Correct path to the ps command. - Make sure to work even without the domainname program. - Fix clean target to remove files generated by pod2html generated. * Add cron.hourly file to call killer once an hour to kill background jobs. -- Petter Reinholdtsen Wed, 30 Jan 2008 13:59:09 +0100 debian/compat0000644000000000000000000000000212346017113010362 0ustar 5 debian/control0000644000000000000000000000213312412012723010562 0ustar Source: killer Section: misc Priority: optional Maintainer: Debian Edu Developers Uploaders: Petter Reinholdtsen , José L. Redrejo Rodríguez , Alexander Alemayhu Build-Depends: debhelper (>= 8.0.0) , cdbs , perl Standards-Version: 3.9.6 Vcs-git: git://anonscm.debian.org/debian-edu/pkg-team/killer.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-edu/pkg-team/killer.git Package: killer Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends} , exim4 | mail-transport-agent , xprintidle Description: Background job killer killer is a perl script that gets rid of background jobs. Background jobs are defined as processes that belong to users who are not currently logged into the machine. Jobs can be run in the background (and are exempt from *killer*'s actions) if their scheduling priority has been reduced by increasing their nice(1) value or if they are being run through condor. . When the package is installed, a cron job is installed to run killer once an hour. debian/source/0002755000000000000000000000000012346017430010470 5ustar debian/source/format0000644000000000000000000000001412346017430011674 0ustar 3.0 (quilt) debian/README.source0000644000000000000000000000013412346017113011341 0ustar This package uses dpatch. See /usr/share/doc/dpatch/README.source.gz for more information. debian/copyright0000644000000000000000000000117412346017113011122 0ustar This package was debianized by the author Petter Reinholdtsen on Tue Jan 29 22:00:27 CET 2008. It was downloaed from . The killer package is copyright (C) 1999, 2000 Michael Gerdts . These scripts are free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'.