]> git.michaelhowe.org Git - packages/o/openafs.git/commit
rpm: Don't attempt to restart on upgrade when using systemd
authorGeoffrey Thomas <geofft@mit.edu>
Sun, 11 Dec 2011 10:06:24 +0000 (05:06 -0500)
committerDerrick Brashear <shadow@dementix.org>
Tue, 3 Jan 2012 18:38:10 +0000 (10:38 -0800)
commit31b0156bbf2369e4388243d2c2a09cd00e6041a6
tree00368f482b36ac683f4ff2c67d818e6628e85a1e
parent3e6c1df2f60e1349f34c81ea54e1622fb6f5dd9d
rpm: Don't attempt to restart on upgrade when using systemd

systemd is actually rather capable of leaving the OpenAFS client in an
incredibly broken state, thanks to its willingness to track services and
kill their processes. We should not attempt to restart the client on
upgrade, whether a normal upgrade or a migration from SysV initscripts.
In the former case, it's fine (and correct) for the old AFS to keep
running; in the latter case, the unit file is capable of correctly
shutting down an initscript-launched client. The same is true for the
OpenAFS server.

This brings the packaging in line with the SysV initscript code in the
specfile, which does not attempt to restart the service, as well as with
e.g. Debian's packaging, which uses --no-restart-on-upgrade.

While we're here, clean up a redundant BuildRequires on systemd-units.

Reviewed-on: http://gerrit.openafs.org/6247
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit dee93ff1d114da711df345e06b5e1a682c877315)

Change-Id: I4ecf3b2f307a81549e0bd568ab5e4585a2ef1f2d
Reviewed-on: http://gerrit.openafs.org/6492
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/packaging/RedHat/openafs.spec.in