projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
actually commit the set/isolate patch!
[spider.git]
/
cmd
/
shutdown.pl
diff --git
a/cmd/shutdown.pl
b/cmd/shutdown.pl
index 43b6fb7531a24887dea609cb7f39a7fc095e9dfa..1a5a5663ec2d426773ce47ed713e060a687056d9 100644
(file)
--- a/
cmd/shutdown.pl
+++ b/
cmd/shutdown.pl
@@
-4,7
+4,14
@@
# $Id$
#
my $self = shift;
# $Id$
#
my $self = shift;
-if ($self->priv >= 5) {
- &main::cease();
+my $call = $self->call;
+my $ref;
+return (1, $self->msg('e5')) unless $self->priv >= 5;
+foreach $ref (DXChannel::get_all()) {
+ $ref->send($self->msg('shutting')) if $ref->is_user;
}
}
-return (0);
+
+# give some time for the buffers to empty and then shutdown (see cluster.pl)
+$main::decease = 25;
+
+return (1);