Search
j0ke.net Open Build Service
>
Projects
>
virtualization
:
Cloud
:
glusterfs:3.6.1
>
glusterfs
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Changed
glusterfs.spec
@@ -88,21 +88,21 @@ %endif %if ( 0%{?_with_systemd:1} ) -%define _init_enable() /bin/systemctl enable %1.service ; -%define _init_disable() /bin/systemctl disable %1.service ; -%define _init_restart() /bin/systemctl try-restart %1.service ; -%define _init_start() /bin/systemctl start %1.service ; -%define _init_stop() /bin/systemctl stop %1.service ; +%define _init_enable() /bin/systemctl enable %1.service || : ; +%define _init_disable() /bin/systemctl disable %1.service || : ; +%define _init_restart() /bin/systemctl try-restart %1.service || : ; +%define _init_start() /bin/systemctl start %1.service || : ; +%define _init_stop() /bin/systemctl stop %1.service || : ; %define _init_install() install -D -p -m 0644 %1 %{buildroot}%{_unitdir}/%2.service ; # can't seem to make a generic macro that works %define _init_glusterd %{_unitdir}/glusterd.service %define _init_glusterfsd %{_unitdir}/glusterfsd.service %else -%define _init_enable() /sbin/chkconfig --add %1 ; -%define _init_disable() /sbin/chkconfig --del %1 ; -%define _init_restart() /sbin/service %1 condrestart &>/dev/null ; -%define _init_start() /sbin/service %1 start &>/dev/null ; -%define _init_stop() /sbin/service %1 stop &>/dev/null ; +%define _init_enable() /sbin/chkconfig --add %1 || : ; +%define _init_disable() /sbin/chkconfig --del %1 || : ; +%define _init_restart() /sbin/service %1 condrestart &>/dev/null || : ; +%define _init_start() /sbin/service %1 start &>/dev/null || : ; +%define _init_stop() /sbin/service %1 stop &>/dev/null || : ; %define _init_install() install -D -p -m 0755 %1 %{buildroot}%{_sysconfdir}/init.d/%2 ; # can't seem to make a generic macro that works %define _init_glusterd %{_sysconfdir}/init.d/glusterd