blob: 2904be1364fbb79b6ad21cbfad270afdbd98da09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/usr/bin/perl
#
# iceplexd
#
# Copyright (c) 2003 Ivan Kohler
# All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the same terms as Perl itself.
# TODO, fake it for now :)
# daemonize
while (1) {
# select all servers
# SELECT * FROM iceplex_servers
foreach my $server ( @servers ) {
#ping , set status
# ask # of listeners
#update database
}
sleep 5;
}
|