reopen 443247 thanks On Tue, Dec 25, 2007 at 06:37:52PM +0100, Petter Reinholdtsen wrote:
> The described behavior is according to the Debian policy > <URL:http://www.debian.org/doc/debian-policy/ch-opersys.html>, which > in section 9.3.2 "Writing the scripts" reads: > Packages that include daemons for system services should place > scripts in /etc/init.d to start or stop services at boot time or > during a change of runlevel. These scripts should be named > /etc/init.d/package, and they should accept one argument, saying > what to do: > start - start the service, > stop - stop the service, > restart - stop and restart the service if it's already running, > otherwise start the service > A restart will start the service if it isn't already running, and it > is no bug. invoke-rc.d just pass on a restart to the service script > as long as it is not configured using policy-rc.d to disable a given > service. The issue here was the system admins expectations, which > where not in line with the Debian policy. > Because of this, I am closing this bug. /usr/share/doc/sysv-rc/README.policy-rc.d.gz says: invoke-rc.d built-in policy rules: To shield policy-rc.d of the underlying initscript system (file-rc, links in /etc/rc?.d or something else), invoke-rc.d implements the following built-in rules: 1. action "start" out of runlevel is denied, (policy-rc.d receives action "(start)" instead of "start"); 2. action "restart" out of runlevel is denied, (policy-rc.d receives action "(restart)" instead of "restart"); 3. any action for a non-executable initscript is denied. The reported behavior of invoke-rc.d is therefore inconsistent with the package's own documentation because this was an out-of-runlevel start, and furthermore, the documented behavior is reasonable whereas I don't believe that the reported actual behavior is. Or perhaps you misread the bug report and overlooked that this invoke-rc.d invocation caused kdm to be started while in the system was in single-user mode? -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer http://www.debian.org/ [EMAIL PROTECTED] [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

