egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Start Services with Eggdrop??

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
tessa1
Halfop


Joined: 18 Apr 2005
Posts: 49
Location: Germany

PostPosted: Sat Aug 27, 2005 9:28 pm    Post subject: Start Services with Eggdrop?? Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Aug 27, 2005 9:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
tessa1
Halfop


Joined: 18 Apr 2005
Posts: 49
Location: Germany

PostPosted: Sat Aug 27, 2005 10:04 pm    Post subject: Reply with quote

many thanks Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber