Ad Widget

Collapse

CentOS 4.x / RH el4 init.d script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dataman
    Junior Member
    • Jan 2007
    • 10

    #1

    CentOS 4.x / RH el4 init.d script

    I had real trouble with the startup script included in for RedHat.

    Some one provided a script in http://www.zabbix.com/forum/showthre...=Centos+init.d , unfortunately, the link to the script is broken , so i could not try it.

    So, i made my own "Universal" init.d script.

    It can start, stop, restart, reload and condrestart. It handles the pid after crash problem. It's "Universal" because, it's easy to modify for other applications.

    I am really new to Linux scripting, so check the script carefully for any eventual bug.

    Any comments will be highly appreciated.


    or


    Tested on Centos 4.4, x86_64, Zabbix 1.3.2, MySQL 5.0.22, PHP 5.1.6

    Edit: changed zabbix_server startup priority to 130, that way it will start after mysqld, else it will fail.
    Last edited by dataman; 12-01-2007, 20:41.
  • eger
    Member
    • Nov 2006
    • 95

    #2
    I can't believe no one thanked you yet for these.

    Thanks!

    I hope the Zabbix team will consider including these for the misc/centos startup scripts. The default configure on CentOS requires run by a user other than root. This script could use some cleanup on syntax. But it works with only editing of the zabbix_server location where the redhat and fedora scripts did not.

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      These scripts will be included into ZABBIX distro! Thank you!
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • testos
        Member
        • Apr 2007
        • 85

        #4
        I have used this script for several months ago and have verified that:

        In slowly/saturated Zabbix servers, is more suitable for restart operations, otherwise an error can be displayed:
        STARTVERIFWAIT=2000000
        STOPVERIFWAIT=2000000

        In slowly/saturated Zabbix agent hosts is more suitable for restart operations, otherwise an error can be displayed:
        STOPVERIFWAIT=2000000

        Regards
        Last edited by testos; 18-09-2007, 14:21.

        Comment

        Working...