About this list Date view Thread view Subject view Author view Attachment view

From: Joel Vandal (jvandal_at_infoteck.qc.ca)
Date: Sat 13 Jul 2002 - 18:45:06 BST


> 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


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 06 Nov 2002 - 07:03:41 GMT by hypermail 2.1.3