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:
parent
dbfb16fd73
commit
26f9257519
@ -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>
|
Thu Sep 6 19:03:06 UTC 2018 - Marcus Rueckert <mrueckert@suse.de>
|
||||||
|
|
||||||
|
10
redis.spec
10
redis.spec
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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 || \
|
getent passwd %{name} >/dev/null || \
|
||||||
%{_sbindir}/useradd -g %{name} -s /bin/false -r \
|
%{_sbindir}/useradd -g %{name} -s /bin/false -r \
|
||||||
-c "User for %{name} key-value store" -d %{_data_dir} %{name} || :
|
-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
|
%post
|
||||||
systemd-tmpfiles --create %{_libexecdir}/tmpfiles.d/%{name}.conf || true
|
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"
|
echo "See %{_docdir}/%{name}/README.SUSE to continue"
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun %{name}.target
|
%service_del_preun redis.target redis@.service redis-sentinel.target redis-sentinel@.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%service_del_postun %{name}.target
|
%service_del_postun redis.target redis@.service redis-sentinel.target redis-sentinel@.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
Loading…
Reference in New Issue
Block a user