Added an option to configure the hostname manually. And there was a problem when APC wasn't present.
This commit is contained in:
@@ -24,6 +24,9 @@ function cronhooks_run(&$argv, &$argc){
|
||||
load_config('config');
|
||||
load_config('system');
|
||||
|
||||
if ($hostname = get_config('system', 'hostname'))
|
||||
$a->set_hostname($hostname);
|
||||
|
||||
$lockpath = get_config('system','lockpath');
|
||||
if ($lockpath != '') {
|
||||
$pidfile = new pidfile($lockpath, 'cron.lck');
|
||||
|
||||
Reference in New Issue
Block a user