From: John Francis Lee (jfl_at_robinlea.com)
Date: Mon 05 Jan 2004 - 00:21:10 GMT
Yes I had commented the same lines in syslog and found a similar
solution to halt.
Thanks very much for your help.
On จ., 2004-01-05 at 06:20, Darryl Ross wrote:
> Taking Herbert's response a little further by giving solutions. All of 
> my virtual servers are running RedHat, with very few exceptions, so 
> these instructions apply to that. Modify for other distros if required.
> 
> >>I still have lots of errors shutting down things that I never explicitly
> >>started, the kernel log daemon, and things not mounted in the vserver
> >>fstab.
> >>    
> >>
> >
> >unfortunately this is/was expected, because the
> >sysv init scripts of most distributions need some
> >reworking to run without errors ...
> >
> >a) /etc/init.d/syslog  usually starts two loggers
> >   the system logger and the kernel logger
> >
> >   as no vserver has access to kernel logging
> >   stuff, the startup of the kernel logger will
> >   fail, which isn't detected by most scripts
> >   (reporting success on startup) but results in
> >   an error when the same script tries to stop
> >   the kernel logger ...
> >  
> >
> I normally edit the /etc/init.d/syslog file and comment out the parts 
> that try to start and stop klogd. Attached is a diff file of the changes 
> I make to it.
> 
> >b) at shutdown (usually runlevel 6) as final step
> >   almost every distro does some unmounting and
> >   hardware stuff (setting hw clock, storing
> >   random seed, quota, etc) before the actual 
> >   'reboot'
> >
> >   this will fail, as most operations are not
> >   allowed, or simply wrong (like unmounting
> >   everything in /proc/mounts ...) so it is best
> >   to remove the entire stop script ...
> >  
> >
> The easiest way is to move the /etc/init.d/halt file out of the way (as 
> a backup) and then
> 
> ln -s /bin/true /etc/init.d/halt
> 
> That should remove the error messages.
> 
> HTH
> Regards
> Darryl
> 
> ______________________________________________________________________
> 25c25
> <       KLOGD_OPTIONS="-2"
> ---
> > #     KLOGD_OPTIONS="-2"
> 37,39c37,39
> <       echo -n $"Starting kernel logger: "
> <       daemon klogd $KLOGD_OPTIONS
> <       echo
> ---
> > #     echo -n $"Starting kernel logger: "
> > #     daemon klogd $KLOGD_OPTIONS
> > #     echo
> 44,46c44,46
> <       echo -n $"Shutting down kernel logger: "
> <       killproc klogd
> <       echo
> ---
> > #     echo -n $"Shutting down kernel logger: "
> > #     killproc klogd
> > #     echo
> 56c56
> <       status klogd
> ---
> > #     status klogd
-- John Francis Lee <jfl_at_robinlea.com> _______________________________________________ Vserver mailing list Vserver_at_list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver