Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: mod_backhand: Wackamole
Perl scripts
 

Index | Next | Previous | View Flat


iane at sussex

Jun 23, 2006, 9:16 AM


Views: 2244
Permalink
Perl scripts

Hi,

I'm trying to use the embedded perl interpreter in wackamole to reconfigure
my services when an VIF comes up. I want to start an instance of Exim smtp
server listening on port 25 on the newly acquired IP address, but only for
certain addresses.

I've managed to get a perl function logging to syslog, but I don't see how
to work out what the new IP address is. Does the perl function get called
with any parameters? Is there a way to do that? If not, is there another
way of deciding which interfaces just came up?

I'm using MacOSX 10.4 with this config:

# Named socket for online control
Control = /var/run/wack.it
PerlUseLib /opt/local/etc/
PerlUse wackamole
RunDynamic wackamole::mysub on up

mysub just prints a string to syslog. I tried to capture arguments passed
to mysub by dumping $_ into the string, but couldn't make any sense of the
output. That could be my perl ignorance, though.
--
Ian Eiloart
IT Services, University of Sussex

_______________________________________________
wackamole-users mailing list
wackamole-users[at]lists.backhand.org
http://lists.backhand.org/mailman/listinfo/wackamole-users

Subject User Time
Perl scripts iane at sussex Jun 23, 2006, 9:16 AM
    Re: Perl scripts jesus at omniti Jun 23, 2006, 11:52 AM
        Re: Perl scripts iane at sussex Jun 24, 2006, 6:38 AM
        Re: Perl scripts iane at sussex Jun 26, 2006, 9:34 AM
    Re: Perl scripts jesus at omniti Jun 26, 2006, 10:58 AM
        Re: Perl scripts iane at sussex Jun 27, 2006, 3:56 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.