forked from fluent/fluent-package-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deb rpm: remove manual feature of zero-downtime-restart from uninstal…
…l phase (fluent#758) We were going to support two methods of downgrading with zero downtime. 1. Running v6.x => Install v5.x package by overwriting 2. Running v6.x => Replace `FLUENT_PACKAGE_SERVICE_RESTART` value to `manual` => uninstall v6.x => Install v5.x The second method is to keep the Fluentd process running after uninstalling it. We decided to remove `2.` method because it may cause confusion for users. Signed-off-by: Shizuo Fujita <[email protected]>
- Loading branch information
1 parent
a1bde1d
commit 55c021b
Showing
2 changed files
with
2 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,18 +197,7 @@ if [ $1 -eq 2 ]; then | |
fi | ||
|
||
%preun | ||
. %{_sysconfdir}/sysconfig/@SERVICE_NAME@ | ||
echo "preun FLUENT_PACKAGE_SERVICE_RESTART: $FLUENT_PACKAGE_SERVICE_RESTART" | ||
if [ $1 -eq 0 ]; then | ||
if [ "$FLUENT_PACKAGE_SERVICE_RESTART" = "manual" ]; then | ||
# When rollback to previous version, there is a case that user want to | ||
# restart manually to reduce downtime. | ||
: | ||
else | ||
# disable service here | ||
%systemd_preun @[email protected] | ||
fi | ||
fi | ||
%systemd_preun @[email protected] | ||
|
||
%post | ||
. %{_sysconfdir}/sysconfig/@SERVICE_NAME@ | ||
|