diff --git a/rpm/tarantool.spec b/rpm/tarantool.spec index da91158ccf6c2eef1d4edd40c66d39f4666e8e46..6d082584d299c0d80f82eaa118b91f66a1b44e3c 100644 --- a/rpm/tarantool.spec +++ b/rpm/tarantool.spec @@ -147,15 +147,16 @@ cd test && ./test-run.py unit/ app/ app-tap/ box/ box-tap/ engine/ sophia/ %systemd_post tarantool@.service %else chkconfig --add tarantool || : -service tarantool start || : %endif %preun %if %{with systemd} %systemd_preun tarantool@.service %else -service tarantool stop -chkconfig --del tarantool +if [ $1 -eq 0 ] ; then # uninstall + service tarantool stop || : + chkconfig --del tarantool || : +fi %endif %postun