]> granicus.if.org Git - icinga2/commitdiff
spec: Don't start Icinga 2 by default.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 11 Oct 2013 12:58:42 +0000 (14:58 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 11 Oct 2013 12:58:42 +0000 (14:58 +0200)
icinga2.spec.in

index 71cbc5d41a803752edbbc6d26b8966c9f0266085..c7bdd3b3e5bf3de0264e669807e641f03c4e680b 100644 (file)
@@ -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}
 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
 if [ ${1:-0} -eq 1 ]
 then