diff options
author | Ramesh Nachimuthu <rnachimu@redhat.com> | 2014-06-09 12:05:24 +0530 |
---|---|---|
committer | Timothy Asir <tim.gluster@gmail.com> | 2014-06-11 23:26:13 -0700 |
commit | 6028557283aeff21474651ef415ba9acae1083fe (patch) | |
tree | 017d38e75d43d6005fde4bc0cca8f51a4cbddb13 | |
parent | f01196805bc391b47d00af2a7093b3f0ef65744d (diff) |
spec: chkconfig for nagios/nsca services
Adding chkconfig for nagios and nsca services. By default nagios
and nsca is disabled in all the run levels. So we have to enable
them by running 'chkconfig <service> on' during installation.
Change-Id: I8527abca24ec286f85c425db9cbeb216047eaa97
Bug-Url: https://bugzilla.redhat.com/1080449
Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
Reviewed-on: http://review.gluster.org/8012
Reviewed-by: Bala FA <barumuga@redhat.com>
Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
Reviewed-by: Timothy Asir <tim.gluster@gmail.com>
-rw-r--r-- | nagios-server-addons.spec.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nagios-server-addons.spec.in b/nagios-server-addons.spec.in index 0e9e50c..c0174ab 100644 --- a/nagios-server-addons.spec.in +++ b/nagios-server-addons.spec.in @@ -26,6 +26,7 @@ %else %define _init_enable() /sbin/chkconfig --add %1 ; %define _init_disable() /sbin/chkconfig --del %1 ; +%define _init_on() /sbin/chkconfig %1 on ; %define _init_restart() /sbin/service %1 restart &>/dev/null ; %define _init_try_restart() /sbin/service %1 condrestart &>/dev/null ; %define _init_stop() /sbin/service %1 stop &>/dev/null ; @@ -206,8 +207,15 @@ fi %_init_enable nagios %_init_enable httpd +%_init_enable nsca +%if ( 0%{!?_with_systemd:1} ) +%_init_on nagios +%_init_on nsca +%_init_on httpd +%endif %_init_restart nagios %_init_restart httpd +%_init_restart nsca %files %defattr(-,root,root,-) |