A brief file description. More...
#include "libts.h"
#include "ink_sys_control.h"
#include "signals.h"
#include "DiagsConfig.h"
#include "Main.h"
#include "Error.h"
#include "P_EventSystem.h"
#include "P_RecProcess.h"
#include "ProcessManager.h"
#include "MgmtUtils.h"
#include "RecordsConfig.h"
Go to the source code of this file.
Defines | |
#define | LOG_FILENAME_SIZE 255 |
Functions | |
static void | init_system (bool notify_syslog) |
static void | initialize_process_manager () |
void | shutdown_system () |
static void | check_lockfile () |
void | init_log_standalone (const char *pgm_name, bool one_copy) |
void | init_log_standalone_basic (const char *pgm_name) |
Variables | |
int | fds_limit |
int | cluster_port_number |
int | command_flag = 0 |
int | http_accept_port_number = 0 |
int | http_accept_file_descriptor = 0 |
int | remote_management_flag = 0 |
int | auto_clear_hostdb_flag = 0 |
char | proxy_name [MAXDNAME+1] = "unknown" |
char | error_tags [1024] = "" |
char | action_tags [1024] = "" |
char | command_string [512] = "" |
DiagsConfig * | diagsConfig = NULL |
HttpBodyFactory * | body_factory = NULL |
AppVersionInfo | appVersionInfo |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file LogStandalone.cc.
#define LOG_FILENAME_SIZE 255 |
Definition at line 45 of file LogStandalone.cc.
static void check_lockfile | ( | ) | [static] |
Definition at line 151 of file LogStandalone.cc.
References ats_free(), Lockfile::Get(), Layout::get(), Layout::relative_to(), and SERVER_LOCK.
Referenced by init_log_standalone().
void init_log_standalone | ( | const char * | pgm_name, | |
bool | one_copy | |||
) |
Definition at line 197 of file LogStandalone.cc.
References action_tags, check_lockfile(), DiagsConfig::diags, diags, error_tags, init_system(), and initialize_process_manager().
Referenced by main().
void init_log_standalone_basic | ( | const char * | pgm_name | ) |
Definition at line 237 of file LogStandalone.cc.
References action_tags, DiagsConfig::diags, diags, error_tags, and init_system().
Referenced by main().
static void init_system | ( | bool | notify_syslog | ) | [static] |
Definition at line 75 of file LogStandalone.cc.
References AppVersionInfo::AppStr, fds_limit, AppVersionInfo::FullVersionInfoStr, init_signals(), and ink_max_out_rlimit().
Referenced by init_log_standalone(), and init_log_standalone_basic().
static void initialize_process_manager | ( | ) | [static] |
Definition at line 91 of file LogStandalone.cc.
References AppVersionInfo::BldDateStr, AppVersionInfo::BldMachineStr, AppVersionInfo::BldNumStr, AppVersionInfo::BldPersonStr, AppVersionInfo::BldTimeStr, diags, AppVersionInfo::FullVersionInfoStr, ink_assert, RECM_CLIENT, RECM_STAND_ALONE, RECP_NON_PERSISTENT, RecProcessInit(), RecProcessInitMessage(), RecRegisterStatString, RECT_PROCESS, remote_management_flag, and AppVersionInfo::VersionStr.
Referenced by init_log_standalone().
void shutdown_system | ( | ) |
Definition at line 141 of file LogStandalone.cc.
Referenced by interrupt_handler(), and signal_handler().
char action_tags[1024] = "" |
Definition at line 61 of file LogStandalone.cc.
Referenced by init_log_standalone(), init_log_standalone_basic(), and main().
Definition at line 68 of file LogStandalone.cc.
Referenced by api_init(), main(), and CommandLineArgs::parse_arguments().
int auto_clear_hostdb_flag = 0 |
Definition at line 57 of file LogStandalone.cc.
Referenced by HostDBProcessor::start().
HttpBodyFactory* body_factory = NULL |
Definition at line 67 of file LogStandalone.cc.
Definition at line 34 of file ClusterProcessor.cc.
int command_flag = 0 |
Definition at line 53 of file LogStandalone.cc.
Referenced by main(), and maintainance_mode().
char command_string[512] = "" |
Definition at line 62 of file LogStandalone.cc.
Referenced by cmd_mode(), and main().
DiagsConfig* diagsConfig = NULL |
Definition at line 66 of file LogStandalone.cc.
Referenced by diags_config_callback(), and main().
char error_tags[1024] = "" |
Definition at line 60 of file LogStandalone.cc.
Referenced by init_log_standalone(), init_log_standalone_basic(), and main().
int fds_limit |
Definition at line 31 of file UnixNet.cc.
int http_accept_file_descriptor = 0 |
Definition at line 55 of file LogStandalone.cc.
int http_accept_port_number = 0 |
Definition at line 54 of file LogStandalone.cc.
char proxy_name[MAXDNAME+1] = "unknown" |
Definition at line 58 of file LogStandalone.cc.
int remote_management_flag = 0 |
Definition at line 56 of file LogStandalone.cc.
Referenced by initialize_process_manager(), and main().