]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Prevent double-starting client on RHEL7
authorJonathon Weiss <jweiss@mit.edu>
Thu, 10 Nov 2016 22:06:18 +0000 (17:06 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Tue, 11 Apr 2017 13:56:17 +0000 (09:56 -0400)
commit3b5e0cee5b57fb1e4086439c5edcaaa499ba60da
tree5434d9fe5dc2752b21e0a7b4d28714c71121b917
parent24a04be1ab2f06f3e50e4646555c28d89b3fd88e
Prevent double-starting client on RHEL7

On RHEL7 if the AFS client is stopped with 'service openafs-client
stop', but that fails for some reason (most commonly because some
process has a file or directory in AFS open) systemd will decide that
the openafs-client is in a failed state when it is actually running.
If one then runs 'service openafs-client start' systemd will start a
new AFS client.  At this point AFS access will continue to work until
the functional AFS client is (successfully) stopped, at which point a
reboot is required to recover.

Have systemd check the status of 'fs sysname' before starting the
AFS client, so we avoid getting into a state that requires a reboot.

Reviewed-on: https://gerrit.openafs.org/12443
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit c666bfee8848183ccbc566c9e0fa019088e56505)

Change-Id: I2e7bf69ec5d1ae344d38b86fc3caace25b2da135
Reviewed-on: https://gerrit.openafs.org/12587
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/packaging/RedHat/openafs-client.service