[File-rc-users] Bug#649407: file-rc: Mistakes in rc script
Benoit Friry
benoit at friry.net
Sun Nov 20 17:10:13 UTC 2011
Package: file-rc
Version: 0.8.12
Severity: important
Dear Maintainer,
In order to understand the order of treatment of runlevel.conf, I open the rc
script and found some errors:
- sorting as brought by #327085 creates some errors, due to conflict on the
"x" variable, also used in is_elem() function.
- debug and verbose options are inverted between code and explanation
I corrected that, and use some time to improve the cosmetic:
- complete reindentation
- homogeneous use of "[]" and "test"
- simplify execution conditions at the end of the file
- remove "set centerline" which is useless
I hope this will be useful.
This also resolves #601985.
Please consider clarifying that to switch between one level and another one, rc
runs all kill commands and then all start commands, both in the "sort column"
order.
Thanks,
Benoit
*** End of the template - remove these lines ***
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.1-bf (PREEMPT)
Locale: LANG=fr_FR at euro, LC_CTYPE=fr_FR at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rc
Type: text/x-shellscript
Size: 7760 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/file-rc-users/attachments/20111120/a87543cf/attachment.bin>
More information about the File-rc-users
mailing list