From: Joel Vandal (jvandal_at_infoteck.qc.ca)
Date: Sat Jul 13 2002 - 13:45:06 EDT
> You have to do *some* work, time to write your own. :-) If you feel that
> the files you've created would be useful to somebody else, then you could
> submit them so that others don't have to suffer the same problems... :-)
Here is two (2) wrapper for Webmin and Exim.
Here a simple procedure using redhat ...
- Create a file (like the following) on /etc/init.d . (webmin =
/etc/init.d/v_webmin ...)
- chkconfig --del webmin (disable the webmin startup)
- chkconfig --level 345 v_webmin on
- service webmin stop
- service v_webmin start
=====cut=====
#!/bin/sh
# chkconfig: - 55 25
# description: Wrapper to start webmin bound to a single IP
IP=eth0
if [ -f /etc/vservices/webmin.conf ] ; then
. /etc/vservices/webmin.conf
fi
exec /usr/sbin/chbind --ip $IP /etc/init.d/webmin $*
=====cut=====
#!/bin/sh
# chkconfig: - 80 30
# description: Wrapper to start exim bound to a single IP
IP=10.1.0.3
if [ -f /etc/vservices/exim.conf ] ; then
. /etc/vservices/exim.conf
fi
exec /usr/sbin/chbind --ip $IP /etc/init.d/exim $*
=====cut=====
-- Joel
This archive was generated by hypermail 2.1.4 : Mon Aug 19 2002 - 12:01:01 EDT