mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
c25a7d580b
commit
7d8733c033
@ -7,7 +7,7 @@
|
||||
# Provides: icinga2
|
||||
# Required-Start: $remote_fs $syslog
|
||||
# Required-Stop: $remote_fs $syslog
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Start: 2 3 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: icinga2 host/service/network monitoring and management system
|
||||
# Description: Icinga 2 is a monitoring and management system for hosts, services and networks.
|
||||
|
25
icinga2.spec
25
icinga2.spec
@ -252,6 +252,31 @@ 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
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%post
|
||||
%{fillup_and_insserv icinga2}
|
||||
%postun
|
||||
%restart_on_update icinga2
|
||||
%insserv_cleanup
|
||||
%preun
|
||||
%stop_on_removal icinga2
|
||||
|
||||
%else
|
||||
|
||||
%post
|
||||
/sbin/chkconfig --add icinga2
|
||||
%postun
|
||||
if [ "$1" -ge "1" ]; then
|
||||
/sbin/service icinga2 condrestart >/dev/null 2>&1 || :
|
||||
fi
|
||||
%preun
|
||||
if [ "$1" = "0" ]; then
|
||||
/sbin/service icinga2 stop > /dev/null 2>&1
|
||||
/sbin/chkconfig --del icinga2
|
||||
fi
|
||||
|
||||
%endif
|
||||
|
||||
%post ido-mysql
|
||||
if [ ${1:-0} -eq 1 ]
|
||||
then
|
||||
|
Loading…
x
Reference in New Issue
Block a user