diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-07-25 14:55:10 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-08-07 12:11:14 +0100 |
commit | e59c508101698593163be421f06fc9d79865d8e9 (patch) | |
tree | 4d2bab7b9a42de988b549a9841db13a60ca20a59 /lib/tasks/config_files.rake | |
parent | fa64dd3e78cdca393ae1658db2e3dc363b4b013f (diff) |
Exit gracefully from sysVinit if thin not available
> These scripts should not fail obscurely when the configuration files
> remain but the package has been removed, as configuration files remain
> on the system after the package has been removed. Only when dpkg is
> executed with the --purge option will configuration files be removed.
> In particular, as the /etc/init.d/package script itself is usually a
> conffile, it will remain on the system if the package is removed but
> not purged. Therefore, you should include a test statement at the top
> of the script, like this:
>
> test -f program-executed-later-in-script || exit 0
https://www.debian.org/doc/debian-policy/ch-opersys.html#s-writing-init
Diffstat (limited to 'lib/tasks/config_files.rake')
0 files changed, 0 insertions, 0 deletions