Accepting request 634210 from home:darix:apps

- make sure that disabling/restarting servers works
  https://nordisch.org/posts/hooking-up-instantiated-services-with-rpm/

OBS-URL: https://build.opensuse.org/request/show/634210
OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=121
This commit is contained in:
Adam Majer 2018-09-07 12:35:42 +00:00 committed by Git OBS Bridge
parent dbfb16fd73
commit 26f9257519
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Sep 7 12:03:31 UTC 2018 - Marcus Rueckert <mrueckert@suse.de>
- make sure that disabling/restarting servers works
https://nordisch.org/posts/hooking-up-instantiated-services-with-rpm/
-------------------------------------------------------------------
Thu Sep 6 19:03:06 UTC 2018 - Marcus Rueckert <mrueckert@suse.de>

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
@ -127,18 +127,18 @@ getent group %{name} >/dev/null || %{_sbindir}/groupadd -r %{name} || :
getent passwd %{name} >/dev/null || \
%{_sbindir}/useradd -g %{name} -s /bin/false -r \
-c "User for %{name} key-value store" -d %{_data_dir} %{name} || :
%service_add_pre %{name}.target
%service_add_pre redis.target redis@.service redis-sentinel.target redis-sentinel@.service
%post
systemd-tmpfiles --create %{_libexecdir}/tmpfiles.d/%{name}.conf || true
%service_add_post %{name}.target
%service_add_post redis.target redis@.service redis-sentinel.target redis-sentinel@.service
echo "See %{_docdir}/%{name}/README.SUSE to continue"
%preun
%service_del_preun %{name}.target
%service_del_preun redis.target redis@.service redis-sentinel.target redis-sentinel@.service
%postun
%service_del_postun %{name}.target
%service_del_postun redis.target redis@.service redis-sentinel.target redis-sentinel@.service
%files
%license COPYING