]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Separate helper for shutdown module check
authorBenjamin Kaduk <kaduk@mit.edu>
Thu, 30 Oct 2014 20:07:41 +0000 (16:07 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Thu, 30 Oct 2014 20:50:26 +0000 (16:50 -0400)
commit5f24653c047bdcd738144fc507b8e809511fe8e9
tree41c55d65378bd15b653b9a6255937efd6f10e425
parent30c4d8526ad0c7ed4bf9c8fa05372312a13994e6
Separate helper for shutdown module check

If a client was running during the upgrade from a sysvinit version
of the package, stopping it with the systemd unit file will not
necessarily have run the precheck script sufficiently recently to
fill in the KMOD variable with openafs, so that the shut-down client
would leave the kernel module loaded.  This causes great badness
when attempting to start the client again.

We do not want to reuse the precheck script during shutdown, as it
has conditionals on things like "not already running" which are not
appropriate there, so use a separate helper script for shutdown.
Always unload a module if it's present (unless loading is disabled),
to reduce the risk that subsequent starts will have trouble.
debian/openafs-client-postcheck [new file with mode: 0755]
debian/openafs-client.install
debian/openafs-client.postrm
debian/openafs-client.service