Skip to content
Snippets Groups Projects
Commit afce2a60 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

RPM: fix scriptlets to follow guidelines

* Don't start tarantool on install
* Don't restart tarantool on upgrade

Fix #2053
parent 0ff46f3c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment