PDA

View Full Version : init.d scripts for RedHat and pid file small patch


vrtareg
26-06-2006, 09:14
Hi Alexei

I want to share my initila scripts for the zabbix server and agentd.
This scripts can be placed to /etc/init.d folder and enabled by the command:
chkconfig --add zabbix_agentd
chkconfig --add zabbix_server

Also i want to share small patch for zabbix 1.1 which change pid file creation order. Now pid file creates from the root user and it can be placed in correct /var/run folder.
I dont know is this correct or no because I am not good in programming.
Please check it because i think that pid which writes to pid file is not correct after this patch.
I mean that pid file must be created in /ver/run directory to allow the "killproc" function from /etc/rc.d/init.d/functions file run correctly and send correct -TERM sygnal to correct server or agentd process.

Regards
Areg

jojo
29-07-2006, 12:37
so thats the init scripts done, what about about the .spec file?

i've had some issues trying to get mine to compile properly. i dont think it's anything to do with the spec file though.. i think it's more to do with the Make part of things in FC5

vrtareg
30-07-2006, 09:05
Hi

I am not friendly with spec files so i can't help.
Sorry


Thanks
Areg

k2s
20-08-2008, 17:37
I had to make small change to this init scripts. Default start priority for Mysql is 64. So I changed a line in /etc/init.d/zabbix_server to:

# chkconfig: - 85 25