m (Fixed template) |
m (added Category:Archived packaging guideline drafts in prep to archive) |
||
Line 19: | Line 19: | ||
Init scripts should also have 0755 permissions. | Init scripts should also have 0755 permissions. | ||
[[Category:Archived packaging guideline drafts]] |
Revision as of 21:04, 21 February 2009
InitScripts Proposal
Problem
There is confusion and disagreement over init files and whether or not they should be marked %config. Init scripts are files that live in /etc, however they are scripts to be executed not files to be configured.
Rationale
Init scripts should be written in such a way that any possible configuration needs to be done from a file in /etc/sysconfig/<package> rather than in the init file itself. Thus the init file should not be marked as %config.
Plan
Add the following to Packaging/Guidelines
Init Scripts
Init scripts must not be marked as %config files.
Although init files live in /etc, they are scripts to be executed, not configured. Any configuration should be made available through /etc/sysconfig/<service> rather than in the init script itself. A valid exception to this rule would be existing packages where configuration is still done via the init file. In this case, the init file could be marked as %config following the rules from the Configuration files section to preserve a users configuration upon upgrade, hopefully so that the user can migrate said configuration to a new /etc/sysconfig/<service> config file.
Init scripts should also have 0755 permissions.