From: Erik Smit (vserver_at_zoiah.net)
Date: Mon 19 Jan 2004 - 10:48:12 GMT
Hi Guys,
Most of my vservers are actually chrooted services (apache/mysqld/etc.)
which don't use runlevels or /sbin/init so I've changed the following in
util-vserver 0.27:
--- /usr/src/util-vserver-0.27/scripts/vserver Sat Dec 27 00:53:21 2003
+++ /usr/sbin/vserver Mon Jan 19 10:40:51 2004
@@ -504,6 +504,9 @@
;;
esac
done
+ if [ -n "$S_START" ] ; then
+ STARTCMD=$S_START
+ fi
if [ "$FAKEINIT" = "" ] ; then
$USR_LIB_VSERVER/fakerunlevel $INITDEFAULT
var/run/utmp
fi
@@ -612,7 +615,9 @@
;;
esac
done
+ if [ -n "$S_STOP" ] ; then
+ STOPCMD=$S_STOP
+ fi
calculateCaps $S_CAPS
cd $VROOTDIR/$1
---------------------------------------
This allows you to use S_START and S_STOP (I heard there was something
like that in previous version, but couldn't find it) in your vserver.conf to replace the standard /sbin/init or /sbin/rc.
It would be nice if this was integrated since I'm applying this patch
every new version. If not, please tell me why.
If anybody else has any comments on or question about this, please fire
away.
Regards,
Erik Smit
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver