Ticket #14525: zabbix-sqlite3.patch

File zabbix-sqlite3.patch, 1.5 KB (added by ecronin (Eric Cronin), 17 years ago)
  • files/zabbix_server.init

     
    22
    33case "$1" in
    44    start)
    5         echo -n "Starting zabbix_server - 60s start delay for MySQL to load during boot"
     5        echo -n "Starting zabbix_server - 60s start delay for SQL server to load during boot"
    66        sleep 60
    77        sudo -u zabbix __PREFIX__/bin/zabbix/zabbix_server -c __PREFIX__/etc/zabbix/zabbix_server.conf
    88        ;;
  • Portfile

     
    7171        configure.args-append   --with-pgsql=${prefix}/lib/postgresql83/bin/pg_config
    7272}
    7373
     74variant sqlite3 \
     75        description {Use SQLite3 for server database} {
     76        depends_lib-delete      port:mysql5
     77        depends_lib-append      port:sqlite3
     78        configure.args-delete   --with-mysql=${prefix}/lib/mysql5/bin/mysql_config
     79        configure.args-append   --with-sqlite3=${prefix}/lib
     80}
     81
    7482variant agent_only {
    7583        depends_lib-delete      port:mysql5 \
    7684                                port:fping
     
    207215
    2082162) Set zabbix_agentd to run at system boot, then start it
    209217
    210         OS X 10.4 - Run launchctl so ZABBIX will start at system boot
     218        OS X 10.4 and up - Run launchctl so ZABBIX will start at system boot
    211219        sudo launchctl load -w /Library/LaunchDaemons/org.macports.zabbix.plist
    212220
    213221        OS X 10.3 and previous - A startup item was created in /Library/StartupItems