]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph.spec.in: Standardize systemd preun and postun scripts
authorNathan Cutler <ncutler@suse.com>
Tue, 8 Sep 2015 08:09:35 +0000 (10:09 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 6 Oct 2015 13:18:25 +0000 (15:18 +0200)
commitf8895fc70b4ad51bce975dfc5b3574a39e7278e8
tree74420e1237b7c3f1e0a5b6279a5e21a9b24380be
parent404ffab739c7646d8d4ff5d52f0728e0883ac91b
ceph.spec.in: Standardize systemd preun and postun scripts

Currently, the main ceph package and the ceph-radosgw behave
differently on upgrade. This commit unifies their behavior
to the following:

On package removal, disable and stop all related systemd units.

On package upgrade, do nothing unless there is a file /etc/sysconfig/ceph
containing a parameter CEPH_AUTO_RESTART_ON_UPGRADE. If parameter is set
to "yes", restart the systemd units iff they are running.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
ceph.spec.in