[Bug 819] New: init script actions: confusing removal wording
| Newsgroups | gmane.linux.lsb.specification |
|---|---|
| Message-ID | <[email protected]> |
The following fragment from the init script actions section is somewhat confusing: === These executable files shall not fail obscurely when the configuration files remain but the package has been removed, as the default in [the packaging system] is to leave configuration files on the system after the package has been removed. Only when it is executed with the [purge] option will [the packaging system] remove configuration files. Therefore, you should include a test statement at the top of the file, like this: test -f program-executed-later-in-file || exit 5 or take the equivalent action if the init file is not a shell script. === The expressions [purge] and [the packaging system] are not defined in terms of this spec, and look like they may have been placeholders for something to be written? The section appears to suggest that the init script may not get uninstalled when the package is, and therefore requires protection against being run in this situation. But in requiring the init script to be installed into /etc/init.d, the implication is that it would also be removed when the package is uninstalled. We could: - more clearly require that the application clean up after itself when removed, and eliminate this requirement (my preferred choice) - demote this to non-normative text and fix the wording - leave it like this but fix the wording -- Configure bugmail: http://bugs.linuxbase.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.