Changeset 17829 for misc/runpugs/scripts
- Timestamp:
- 09/14/07 10:47:19 (15 months ago)
- Files:
-
- 1 modified
-
misc/runpugs/scripts/restart_runpugs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
misc/runpugs/scripts/restart_runpugs
r17826 r17829 1 1 #!/usr/bin/perl 2 my @insts=`ps x | grep termserv | grep -v grep`;3 for my $inst (@insts) {4 my $pid=$inst;5 $pid =~ s/^\s*//;6 $pid =~ s/\s+.*$//;7 print "kill 9,$pid\n";8 kill 9,$pid;9 }10 chdir '/home/andara/apache/bin';11 system('/usr/bin/perl ./termserv.pl');12 2 3 use strict; 4 use Env qw(HOME USER); 5 6 print "Killing all instances of 'termserv.pl' for $USER\n"; 7 system("killall --user $USER termserv.pl"); 8 chdir "$ENV{HOME}/runpugs/bin"; 9 print "Executing './termserv.pl' in the background\n"; 10 system("(./termserv.pl > /dev/null &2>1)&"); 11
