| View previous topic :: View next topic |
| Author |
Message |
tessa1 Halfop
Joined: 18 Apr 2005 Posts: 49 Location: Germany
|
Posted: Sat Aug 27, 2005 9:28 pm Post subject: Start Services with Eggdrop?? |
|
|
Hi,
My idea: We've two HUB-Servers in our network
If the first HUB-Server is going down with its services, the software displays a servernotice, that the server has left the network.
Is it now possible to start the services on the backup-HUB with a eggdrop script?
the command to start the services is ./services
and the path to the services folder is /var/www/IRC/HUB/services
Greetz tessa |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Aug 27, 2005 9:44 pm Post subject: |
|
|
| Code: |
bind raw - NOTICE foo
proc foo {f k t} {
scan $::server {%[^:]:} s
if {$f == $s && [string match "*services*down*" $t]} {
exec /var/www/IRC/HUB/services/services
}
}
|
|
|
| Back to top |
|
 |
tessa1 Halfop
Joined: 18 Apr 2005 Posts: 49 Location: Germany
|
Posted: Sat Aug 27, 2005 10:04 pm Post subject: |
|
|
many thanks  |
|
| Back to top |
|
 |
|