mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 17:27:01 +00:00
AIM Daemon API changes.
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
/**************************************************************************//**
|
||||
*
|
||||
* <bsn.cl fy=2013 v=onl>
|
||||
*
|
||||
* Copyright 2013, 2014 BigSwitch Networks, Inc.
|
||||
*
|
||||
*
|
||||
* Copyright 2013, 2014 BigSwitch Networks, Inc.
|
||||
*
|
||||
* Licensed under the Eclipse Public License, Version 1.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.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*
|
||||
* </bsn.cl>
|
||||
*
|
||||
*****************************************************************************/
|
||||
@@ -150,7 +150,7 @@ faultd_main(int argc, char* argv[])
|
||||
aim_daemon_config_t config;
|
||||
|
||||
memset(&config, 0, sizeof(config));
|
||||
aim_daemon_restart_config_init(&rconfig, 1, 1);
|
||||
aim_daemon_restart_config_init(&rconfig, 1, 1, argv);
|
||||
AIM_BITMAP_CLR(&rconfig.signal_restarts, SIGTERM);
|
||||
AIM_BITMAP_CLR(&rconfig.signal_restarts, SIGKILL);
|
||||
rconfig.maximum_restarts=0;
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include <AIM/aim_log_handler.h>
|
||||
#include <syslog.h>
|
||||
|
||||
static void platform_manager_daemon__(const char* pidfile);
|
||||
static void platform_manager_daemon__(const char* pidfile, char** argv);
|
||||
|
||||
/**
|
||||
* Human-readable SFP inventory.
|
||||
@@ -246,7 +246,7 @@ onlpdump_main(int argc, char* argv[])
|
||||
onlp_init();
|
||||
|
||||
if(M) {
|
||||
platform_manager_daemon__(pidfile);
|
||||
platform_manager_daemon__(pidfile, argv);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -361,14 +361,14 @@ sighandler__(int signal)
|
||||
}
|
||||
|
||||
static void
|
||||
platform_manager_daemon__(const char* pidfile)
|
||||
platform_manager_daemon__(const char* pidfile, char** argv)
|
||||
{
|
||||
aim_pvs_t* aim_pvs_syslog = NULL;
|
||||
aim_daemon_restart_config_t rconfig;
|
||||
aim_daemon_config_t config;
|
||||
|
||||
memset(&config, 0, sizeof(config));
|
||||
aim_daemon_restart_config_init(&rconfig, 1, 1);
|
||||
aim_daemon_restart_config_init(&rconfig, 1, 1, argv);
|
||||
AIM_BITMAP_CLR(&rconfig.signal_restarts, SIGTERM);
|
||||
AIM_BITMAP_CLR(&rconfig.exit_restarts, 0);
|
||||
rconfig.maximum_restarts=50;
|
||||
@@ -412,9 +412,9 @@ platform_manager_daemon__(const char* pidfile)
|
||||
|
||||
#else
|
||||
static void
|
||||
platform_manager_daemon__(const char* pidfile)
|
||||
platform_manager_daemon__(const char* pidfile, char** argv)
|
||||
{
|
||||
fprintf(stderr, "Daemon mode not supported in this build.");
|
||||
fprintf(stderr, "Daemon mode not supported in this build.\n");
|
||||
exit(1);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user