mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
spec: Don't start Icinga 2 by default.
This commit is contained in:
parent
5fd17669d3
commit
ae4247718e
@ -177,16 +177,6 @@ getent group %{icingacmd_group} >/dev/null || %{_sbindir}/groupadd -r %{icingacm
|
|||||||
getent passwd %{icinga_user} >/dev/null || %{_sbindir}/useradd -c "icinga" -s /sbin/nologin -r -d %{_localstatedir}/spool/%{name} -G %{icingacmd_group} -g %{icinga_group} %{icinga_user}
|
getent passwd %{icinga_user} >/dev/null || %{_sbindir}/useradd -c "icinga" -s /sbin/nologin -r -d %{_localstatedir}/spool/%{name} -G %{icingacmd_group} -g %{icinga_group} %{icinga_user}
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%preun
|
|
||||||
if [ "$1" = "0" ]; then
|
|
||||||
/sbin/service %{name} stop &>/dev/null || :
|
|
||||||
/sbin/chkconfig --del %{name} || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post
|
|
||||||
/sbin/chkconfig --add %{name} || :
|
|
||||||
/sbin/service %{name} start &>/dev/null || :
|
|
||||||
|
|
||||||
%post ido-mysql
|
%post ido-mysql
|
||||||
if [ ${1:-0} -eq 1 ]
|
if [ ${1:-0} -eq 1 ]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user