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

From: Darryl Ross (bofh_at_afoyi.com)
Date: Sun 04 Jan 2004 - 23:20:28 GMT


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

_______________________________________________ Vserver mailing list Vserver_at_list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver


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 Sun 04 Jan 2004 - 23:21:38 GMT by hypermail 2.1.3