Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146401 - [baselayout-vserver] Stopping services on which other services depend, hang on "cat /var/lib/init.d/exclusive/SERVICENAME_HERE"
Summary: [baselayout-vserver] Stopping services on which other services depend, hang o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo VPS Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on: 149897
Blocks:
  Show dependency tree
 
Reported: 2006-09-05 08:19 UTC by Matthias Dahl
Modified: 2007-04-11 15:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Dahl 2006-09-05 08:19:21 UTC
I am currently working on setting up a new server (incl. OpenVZ virtualization) for my employer. I have run into the following problem which I cannot get solved:

- start atd, vixie-cron, syslog-ng
- atd and vixie-cron depend on syslog-ng
- stop syslog-ng

This should actually stop atd and vixie-cron but insteads hangs on cat /var/lib/init.d/exclusive/atd. Removing all fifos in exclusive solves the problem until it gets populated again. You can repeat that with any other suitable services.

Besides all this, the fifos also don't get removed if a service is stopped by its init script. I guess this is a bug too.

db / # ls /var/lib/init.d/exclusive/ -l
total 0
prw-r--r-- 1 root root 0 Sep  5 16:06 atd
prw-r--r-- 1 root root 0 Sep  5 16:06 bootmisc
prw-r--r-- 1 root root 0 Sep  5 16:06 clock
prw-r--r-- 1 root root 0 Sep  5 16:06 local
prw-r--r-- 1 root root 0 Sep  5 16:06 localmount
prw-r--r-- 1 root root 0 Sep  5 16:06 net.lo
prw-r--r-- 1 root root 0 Sep  5 16:06 net.venet0
prw-r--r-- 1 root root 0 Sep  5 16:06 rmnologin
prw-r--r-- 1 root root 0 Sep  5 16:06 syslog-ng
prw-r--r-- 1 root root 0 Sep  5 16:06 vixie-cron

Portage 2.1.1_rc1-r2 (default-linux/x86/vserver, gcc-4.1.1, glibc-2.4-r3, 2.6.16-026test017 i686)
=================================================================
System uname: 2.6.16-026test017 i686 Intel(R) Xeon(TM) CPU 3.00GHz
Gentoo Base System version 1.12.1
Last Sync: Tue, 05 Sep 2006 12:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect confcache distlocks fixpackages metadata-transfer notitles parallel-fetch sandbox sfperms strict userfetch"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LINGUAS="en en_GB en_US de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 acl acpi bash-completion berkdb cli crypt curl curlwrappers doc elibc_glibc gdbm glibc-omitfp innodb input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 ithreads kernel_linux linguas_de linguas_en linguas_en_GB linguas_en_US linuxthreads-tls maildir mmap multiuser ncurses nls no-old-linux nptl nptlonly pam pam_chroot pam_console pam_timestamp pcre perl postfix python readline screen serial session sftp sftplogging smp ssl sysfs syslog tcpd unicode userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xsl zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Kir Kolyshkin 2006-09-13 09:58:47 UTC
Please check if http://wiki.openvz.org/Resource_shortage can help with your problem
Comment 2 Matthias Dahl 2006-09-13 10:33:44 UTC
Thanks for the hint but it is most likely a bug with the baselayout-vserver. The VE constraints I chose are pretty tolerant and none of the failcounts have increased. (all still zero)
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2006-09-13 11:00:02 UTC
yeah, i already told kir that i also encountered this with vserver, so it's not ovz specific...

we all pretty much have no idea what's going on, but i will take a deeper look during the next days, and will report back here
Comment 4 Roy Marples (RETIRED) gentoo-dev 2006-10-03 01:44:04 UTC
It's a problem with the kernels handling of FIFOs.
FreeBSD has a similar issue.

Bug #149897 has a patch that should fix it for baselayout-1.13, but really this is a kernel bug.
Comment 5 matthias bernges 2007-02-05 09:27:11 UTC
I have the same problem here using baselayout 1.12.6
Is there at least a woraround so I can shutdown my PC again?
Comment 6 Benedikt Böhm (RETIRED) gentoo-dev 2007-02-05 10:40:44 UTC
kill the cat process ;)
Comment 7 matthias bernges 2007-02-05 11:58:00 UTC
How to kill while shuting down?
Comment 8 Roy Marples (RETIRED) gentoo-dev 2007-04-11 15:26:37 UTC
This is fixed in baselayout-2