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

From: Jacques Gelinas (jack_at_solucorp.qc.ca)
Date: Mon 19 Aug 2002 - 21:15:45 BST


On Mon, 19 Aug 2002 19:29:00 -0500, Paul Sladen wrote
> On Mon, 19 Aug 2002, BrandonHoult wrote:
>
> > p300:~# vserver test2 build
> > /usr/sbin/vserver: cd: etc/rc.d/init.d: No such file or directory
>
> In debian `rc' is in the correct place:
>
> /etc/init.d/rc

This error is unrelated to the rc script. The script tries both. It does

        cd etc/rc.d/init.d || cd etc/init.d

I changed this to

        cd etc/init.d 2>/dev/null || cd etc/rc.d/init.d

> unfortunately the scripts are designed for the b0rken Redhat design of:
>
> /etc/rc.d/init.d/rc

Not really. The script (in 0.19) probes for the proper directory.

Quite frankly, I am tired of those debian advocacies.

> Jack latest set of utils understands about the proper place, but you'll need
> to patch the `vserver' command (a plain script) in the current distribution:

This patch is not related to 0.19.

> ------------------------------------------------------------->
> --- /usr/sbin/vserver~ Fri May 10 16:37:51 2002
> +++ /usr/sbin/vserver Mon May 13 16:08:34 2002
> @@ -130,7 +130,7 @@
> # rwalld rwhod sendmail smb snmpd v_httpd h_xinetd
> v_sshd vservers \
> # xfs ypbind xinetd
> (
> - cd etc/rc.d/init.d || cd etc/init.d
> + cd etc/init.d/init.d || cd etc/init.d

???? etc/init.d/init.d

What is this ?

> for serv in *
> do
> case $serv in
> @@ -337,7 +337,7 @@
> cd /vservers/$1
> mountproc /vservers/$1
> # The fakeinit flag tell us how to turn off the server
> - STOPCMD="/etc/rc.d/rc 6"
> + STOPCMD="/etc/init.d/rc 6"

Seems like and older vserver script to me.

> for f in $S_FLAGS dummy
> do
> case $f in
> <-------------------------------------------------------------
>
> to replace the correct paths. (Or put a symlink in /etc/ in the vservers.)

---------------------------------------------------------
Jacques Gelinas <jack_at_solucorp.qc.ca>
vserver: run general purpose virtual servers on one box, full speed!
http://www.solucorp.qc.ca/miscprj/s_context.hc


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:42 GMT by hypermail 2.1.3