CentOS 4.x / RH el4 init.d script

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Major
    • 1.4.3
    • Affects Version/s: 1.4.3
    • Component/s: Server (S)
    • None

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

      Some one provided a script in http://www.zabbix.com/forum/showthr...t=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.

      http://www.leetdreams.com/downloads/linux/init.d.zip
      or
      http://www.leetdreams.com/downloads/linux/init.d.tgz

      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.

      http://www.zabbix.com/forum/showthread.php?t=4948

            Assignee:
            Alexei Vladishev
            Reporter:
            Alexei Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: