Re: Proposal: raise software quality in init.d scripts
On Mon, 08 Nov 2004, Tim Beil wrote:
> + Rule3: "All symbolic named ressources should (must) be declared and
> initialized at the beginning of the script. They might be changed only via
> scripts out of /etc/defaults."
... or auto-detected from other configuration files, if that information is
available...
> + Rule4: "If a important ressource isn´t available to the script it exits
> with an errorlevel > 0 (1?)"
Except when it detects that the package has been removed, and not purged,
when it must exit with errorlevel 0 without taking any action whatsoever.
> + Rule5: "All system specific configuration files in /etc/defaults should be
> changeable only by root, readable by world"
unless they have sensitive information? Drop the "readable by world",
please, it serves no useful purpose.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
Reply to: