]> git.apps.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, 27 Oct 2015 10:24:19 +0000 (11:24 +0100)
commitaa514b2f900aedd248c163ee258941cb9935d2c5
tree98e4a15e82d0801dcc8b88bf664cbc9c9bb0ad0d
parentfa3130c5609dcd2533f61617acf5a2e2c26a2750
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>
(cherry picked from commit f8895fc70b4ad51bce975dfc5b3574a39e7278e8)
ceph.spec.in