Ad Widget

Collapse

init.d scripts for RedHat and pid file small patch

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vrtareg
    Senior Member
    • May 2006
    • 293

    #1

    init.d scripts for RedHat and pid file small patch

    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
    Attached Files
    Last edited by vrtareg; 28-06-2006, 07:14. Reason: scripts correction
  • jojo
    Member
    • Jul 2006
    • 57

    #2
    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
    Last edited by jojo; 29-07-2006, 16:30.

    Comment

    • vrtareg
      Senior Member
      • May 2006
      • 293

      #3
      Hi

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


      Thanks
      Areg

      Comment

      • k2s
        Junior Member
        • Aug 2008
        • 1

        #4
        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:

        Code:
        # chkconfig: - 85 25

        Comment

        Working...