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

From: Paul Sladen (vserver_at_paul.sladen.org)
Date: Mon 19 Aug 2002 - 19:29:00 BST


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

unfortunately the scripts are designed for the b0rken Redhat design of:

  /etc/rc.d/init.d/rc

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:

------------------------------------------------------------->
--- /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
                        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"
                for f in $S_FLAGS dummy
                do
                        case $f in
<-------------------------------------------------------------

to replace the correct paths. (Or put a symlink in /etc/ in the vservers.)

        -Paul

-- 
Nottingham, GB


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