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@lists.backhand.org
http://lists.backhand.org/mailman/listinfo/wackamole-users
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@lists.backhand.org
http://lists.backhand.org/mailman/listinfo/wackamole-users