I'm using newest Icinga 1.7.0 build from sources into my own rpm package 
and installed as an upgrade from 1.6.1 on my Scientific Linux 5.x 
arch x86_64. The /etc/init.d/icinga was 
rewritten by newest version of init script from 1.7.0 sources.
But when I try to stop icinga proces, the stop command does not work. 
Below is my step by step problem reproduction:

----------

[root@nag init.d]# ll /var/icinga/
checkresults/  icinga.pid     ido2db.lock    objects.cache  retention.dat 
rw/            status.dat
[root@nag init.d]# ll /var/icinga/icinga.pid
-rw-r--r-- 1 icinga icinga 6 Jun 20 13:27 /var/icinga/icinga.pid
[root@nag init.d]# cat /var/icinga/icinga.pid
16606
[root@nag init.d]# ps auxw | grep icinga
icinga   16606  1.5  0.0  97380  7540 ?        Ssl  13:27   0:26 
/usr/bin/icinga -d /etc/icinga/icinga.cfg
icinga   28571  0.0  0.0  97384  6936 ?        S    13:55   0:00 
/usr/bin/icinga -d /etc/icinga/icinga.cfg
icinga   28572  0.0  0.0  67504   688 ?        S    13:55   0:00 
/usr/lib64/nagios/plugins//check_icmp -w 5000 100  -c 5000 100  -p1 
10.8.197.12
root     28594  0.0  0.0  61216   764 pts/0    S+   13:55   0:00 grep 
icinga
[root@nag init.d]# /etc/init.d/icinga stop
Stopping icinga: Stopping icinga done.
[root@nag init.d]# ps auxw | grep icinga
icinga   16606  1.5  0.0  97380  7540 ?        Ssl  13:27   0:26 
/usr/bin/icinga -d /etc/icinga/icinga.cfg
icinga   29412  0.0  0.0  97384  6932 ?        S    13:56   0:00 
/usr/bin/icinga -d /etc/icinga/icinga.cfg
icinga   29413  0.0  0.0  67504   684 ?        S    13:56   0:00 
/usr/lib64/nagios/plugins//check_icmp -w 5000 100  -c 5000 100  -p1 
10.254.254.212
root     29468  0.0  0.0  61216   760 pts/0    S+   13:56   0:00 grep 
icinga
[root@nag init.d]#
[root@nag init.d]#
[root@nag init.d]# cat /var/icinga/icinga.pid
16606
[root@nag init.d]# killall icinga
[root@nag init.d]# cat /var/icinga/icinga.pid
cat: /var/icinga/icinga.pid: No such file or directory
[root@nag init.d]# /etc/init.d/icinga start
Running configuration check...OK
Starting icinga: Starting icinga done.
[root@nag init.d]# cat /var/icinga/icinga.pid
30113
[root@nag init.d]# ps axuw | grep icinga
icinga   30113  2.8  0.0  97380  7516 ?        Ssl  13:56   0:00 
/usr/bin/icinga -d /etc/icinga/icinga.cfg
root     30514  0.0  0.0  61212   752 pts/0    S+   13:56   0:00 grep 
icinga

--------------

What's wrong? I think the init.d script is the one from sources named 
daemon-init-redhat.in.

Regards, Tomas

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to