see previous
This commit is contained in:
parent
112f23db7b
commit
b963eff4a6
@ -89,6 +89,7 @@
|
||||
%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
|
||||
@ -98,6 +99,7 @@
|
||||
%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
|
||||
|
Loading…
Reference in New Issue
Block a user