Commit 2b3e4e09 authored by Henrik Triem's avatar Henrik Triem
Browse files

Outcomment the references to service files

parent 17a72e66
Pipeline #7904 failed with stages
in 2 minutes and 26 seconds
......@@ -33,10 +33,10 @@ URL: https://redis.io
Source0: http://download.redis.io/releases/redis-%{version}.tar.gz
Source1: %{src_name}.logrotate
#Source2: %%{src_name}.target
Source3: %{src_name}.service
#Source3: %{src_name}.service
Source4: %{src_name}.tmpfiles.d
Source5: README.SUSE
Source6: %{src_name}.sysctl
#Source6: %{src_name}.sysctl
#Source7: %%{src_name}-sentinel@.service
#Source8: %%{src_name}-sentinel.target
# PATCH-FIX-OPENSUSE -- openSUSE-style init script
......@@ -105,15 +105,15 @@ install -Dm 0640 redis.conf %{buildroot}%{_conf_dir}/redis.conf
#install -Dm 0660 sentinel.conf %{buildroot}%{_conf_dir}/sentinel.conf
# some sysctl stuff
install -Dm 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysctl.d/00-%{name}.conf
install -Dm 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
#install -Dm 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysctl.d/00-%{name}.conf
#install -Dm 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
#install -Dm 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.target
install -Dm 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
install -Dm 0644 %{SOURCE4} %{buildroot}%{_libexecdir}/tmpfiles.d/%{name}.conf
#install -Dm 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
#install -Dm 0644 %{SOURCE4} %{buildroot}%{_libexecdir}/tmpfiles.d/%{name}.conf
#install -Dm 0644 %{SOURCE7} %{buildroot}%{_unitdir}/%{name}-sentinel@.service
#install -Dm 0644 %{SOURCE8} %{buildroot}%{_unitdir}/%{name}-sentinel.target
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
#ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
cp %{SOURCE5} README.SUSE
%check
......@@ -132,18 +132,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}.service
#%service_add_pre %{name}.service
%post
systemd-tmpfiles --create %{_libexecdir}/tmpfiles.d/%{name}.conf || true
%service_add_post %{name}.service
#%service_add_post %{name}.service
echo "See %{_docdir}/%{name}/README.SUSE to continue"
%preun
%service_del_preun %{name}.service
#%service_del_preun %{name}.service
%postun
%service_del_postun %{name}.service
#%service_del_postun %{name}.service
%files
%license COPYING
......@@ -154,7 +154,7 @@ echo "See %{_docdir}/%{name}/README.SUSE to continue"
%{_sbindir}/%{name}-*
%{_sbindir}/rc%{name}
%{_libexecdir}/tmpfiles.d/%{name}.conf
%{_unitdir}/%{name}.service
#%%{_unitdir}/%%{name}.service
#%%{_unitdir}/%%{name}.target
#%%{_unitdir}/%%{name}-sentinel@.service
#%%{_unitdir}/%%{name}-sentinel.target
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment