[root@tornagios3 ~]# grep nag /etc/group
nagios

1000:nagios,apache,snmptt
nagcmd

1001:nagios,apache,snmptt
[root@tornagios3 ~]# ls -la /etc/rc.d/init.d
total 68
drwxr-xr-x. 2 root root 4096 Aug 3 15:24 .
drwxr-xr-x. 10 root root 4096 Nov 20 2015 ..
-rwxr-xr-x. 1 root root 1409 Apr 7 2009 ajaxterm
-rw-r--r--. 1 root root 13948 Sep 16 2015 functions
-rwxr-xr-x. 1 root root 7483 Aug 5 09:22 nagios
-rwxr-xr-x. 1 root root 1206 Aug 3 15:24 nagiosxi
-rwxr-xr-x. 1 root root 4476 Aug 3 15:23 ndo2db
-rwxr-xr-x. 1 root root 2989 Sep 16 2015 netconsole
-rwxr-xr-x. 1 root root 6630 Sep 16 2015 network
-rwxr-xr-x. 1 root root 1926 Aug 3 15:23 npcd
-rw-r--r--. 1 root root 1160 Nov 19 2015 README
[root@tornagios3 ~]# ls -la /etc/rc.d/init.d/nagios
-rwxr-xr-x. 1 root root 7483 Aug 5 09:22 /etc/rc.d/init.d/nagios
[root@tornagios3 ~]# service nagios stop
Stopping nagios (via systemctl): [ OK ]
[root@tornagios3 ~]# bash -x /etc/rc.d/init.d/nagios start
+ prefix=/usr/local/nagios
+ exec_prefix=/usr/local/nagios
+ NagiosBin=/usr/local/nagios/bin/nagios
+ NagiosCfgFile=/usr/local/nagios/etc/nagios.cfg
+ NagiosCfgtestFile=/usr/local/nagios/var/nagios.configtest
+ NagiosStatusFile=/usr/local/nagios/var/status.dat
+ NagiosRetentionFile=/usr/local/nagios/var/retention.dat
+ NagiosCommandFile=/usr/local/nagios/var/rw/nagios.cmd
+ NagiosVarDir=/usr/local/nagios/var
+ NagiosRunFile=/usr/local/nagios/var/nagios.lock
+ NagiosLockDir=/usr/local/nagiosxi/var/subsys
+ NagiosLockFile=nagios
+ NagiosCGIDir=/usr/local/nagios/sbin
+ NagiosUser=nagios
+ NagiosGroup=nagios
+ checkconfig=true
+ '[' -f /etc/rc.d/init.d/functions ']'
+ . /etc/rc.d/init.d/functions
++ TEXTDOMAIN=initscripts
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin
++ export PATH
++ '[' 23770 -ne 1 -a -z '' ']'
++ /bin/mountpoint -q /cgroup/systemd
++ /bin/mountpoint -q /sys/fs/cgroup/systemd
++ case "$0" in
++ _use_systemctl=1
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -z '' ']'
++ '[' -c /dev/stderr -a -r /dev/stderr ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -z '' ']'
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/i18n -o -f /etc/locale.conf ']'
++ . /etc/profile.d/lang.sh
++ unset LANGSH_SOURCED
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ RES_COL=60
+++ MOVE_TO_COL='echo -en \033[60G'
+++ SETCOLOR_SUCCESS='echo -en \033[0;32m'
+++ SETCOLOR_FAILURE='echo -en \033[0;31m'
+++ SETCOLOR_WARNING='echo -en \033[0;33m'
+++ SETCOLOR_NORMAL='echo -en \033[0;39m'
++ '[' pty = serial ']'
++ __sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
++ '[' 1 = 1 ']'
++ '[' xstart = xstart -o xstart = xstop -o xstart = xrestart -o xstart = xreload -o xstart = xtry-restart -o xstart = xforce-reload -o xstart = xcondrestart ']'
++ systemctl_redirect /etc/rc.d/init.d/nagios start
++ local s
++ local prog=nagios
++ local command=start
++ local options=
++ case "$command" in
++ s='Starting nagios (via systemctl): '
++ '[' -n '' ']'
++ systemctl show -p LoadState nagios.service
++ grep -q not-found
++ action 'Starting nagios (via systemctl): ' /bin/systemctl start nagios.service
++ local STRING rc
++ STRING='Starting nagios (via systemctl): '
++ echo -n 'Starting nagios (via systemctl): '
Starting nagios (via systemctl): ++ shift
++ /bin/systemctl start nagios.service
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
++ failure 'Starting nagios (via systemctl): '
++ local rc=1
++ '[' color '!=' verbose -a -z '' ']'
++ echo_failure
++ '[' color = color ']'
++ echo -en '\033[60G'
++ echo -n '['
[++ '[' color = color ']'
++ echo -en '\033[0;31m'
++ echo -n FAILED
FAILED++ '[' color = color ']'
++ echo -en '\033[0;39m'
++ echo -n ']'
]++ echo -ne '\r'
++ return 1
++ '[' -x /bin/plymouth ']'
++ /bin/plymouth --details
++ return 1
++ rc=1
++ echo
++ return 1
++ exit 1