[Bug 531612] New: Illogical/missing/ignored dependencies of newly-added service init scripts
http://bugzilla.novell.com/show_bug.cgi?id=531612 Summary: Illogical/missing/ignored dependencies of newly-added service init scripts Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: i686 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: rts417@yahoo.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009071200 SUSE/3.0.12-0.1.2 Firefox/3.0.12 Hi All, I found this problem when I created an init script for hostapd. I created the script, placed in into /etc/rc.d/, and enabled it with chkconig and insserv. I noticed the script was starting before the network was brought up, which was causing it to fail--this was contrary to the required-start dependencies of the script. After some investigation, I found that insserv was not creating a listing in /etc/rc.d/.depend.start, or creating an entry with incomplete dependencies (depeding on what required-start was entered in the script). Sometimes, the dependencies were ignored entirely when booting. For a complete walkthrough of the problem, and postings of logfiles/hardware/configuration, please see http://forums.opensuse.org/network-internet/420036-service-scripts-start-wro... Reproducible: Always Steps to Reproduce: 1.Create a simple init script with the required header information; set the required-start to $named $remote_fs $ALL, or any other pseudo-service which would require the network be brought up before running. 2.Activate the service on the appropriate runlevel with chkconfig, and add the service with insserv 3.If required-start is set to $ALL, notice the service dependencies are missing from /etc/rc.d/.depend.start. If the required-start is set anything else, notice that some dependencies in /etc/rc.d/.depend.start are listed, but regardless the dependencies are ignored when the system reboots. Actual Results: Script starts before general networking is starting. Expected Results: Script starts after general networking is brought up, as the $remote_fs $named etc etc required-start values would dictate. Problem has been worked around by manually adding network-remotefs dependency in the /etc/rc.d/.depend.start file, or by adding a 'service xxx start' script to /etc/sysconfig/network/scripts -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531612 shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sqiu@novell.com AssignedTo|bnc-team-screening@forge.pr |nld10-bugs-qa@forge.provo.n |ovo.novell.com |ovell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com