From 26f9257519de47f9e45db0b7d34dd0ce74a8bf2b83d1830ab532852b9fd8be5e Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Fri, 7 Sep 2018 12:35:42 +0000 Subject: [PATCH] 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 --- redis.changes | 7 +++++++ redis.spec | 10 +++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/redis.changes b/redis.changes index 780af64..ea7ae3f 100644 --- a/redis.changes +++ b/redis.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Sep 7 12:03:31 UTC 2018 - Marcus Rueckert + +- 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 diff --git a/redis.spec b/redis.spec index d5d929a..e90a410 100644 --- a/redis.spec +++ b/redis.spec @@ -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