fix for new php

This commit is contained in:
Grzegorz Surmann 2024-07-17 18:20:02 +00:00
parent 1b085776fe
commit ef804febe0

View File

@ -6,11 +6,11 @@ if ( !file_exists("/opt/bgpblist/etc/config.ini") ) {
echo "INFO: file created, edit it before next start\n"; echo "INFO: file created, edit it before next start\n";
die(); die();
} }
logtofile("PROCESS_START");
$conf=parse_ini_file("/opt/bgpblist/etc/config.ini",TRUE); $conf=parse_ini_file("/opt/bgpblist/etc/config.ini",TRUE);
$customer=$conf["customer"]["cust_uuid"]; $customer=$conf["customer"]["cust_uuid"];
$logfile=$conf["syslog"]["logfile"]; $logfile=$conf["syslog"]["logfile"];
declare(ticks = 1); declare(ticks = 1);
logtofile("PROCESS_START");
pcntl_signal(SIGINT,"sig_handler"); pcntl_signal(SIGINT,"sig_handler");
pcntl_signal(SIGTERM,"sig_handler"); pcntl_signal(SIGTERM,"sig_handler");
pcntl_signal(SIGHUP,"sig_handler"); pcntl_signal(SIGHUP,"sig_handler");