File src/cmd_restart.c

This will restart one or more of the UBS daemons. If a specific daemon is specified on the command line, it will start that one. Otherwise, it starts all known daemons (which are known by their name, which is in the form ubs-*).


Included Files


Global Variable PROCNAME

char PROCNAME[128]
Included from include/ubs.h

Global Variable CUR_TIME

struct tm* CUR_TIME
Included from include/ubs.h

Global Variable GLOBAL

ubs_table GLOBAL
Included from include/ubs.h

Global Variable LOGLEVEL

int LOGLEVEL
Included from include/ubs.h

Global Function cmd_restart()

Restarts the UBS daemons.

int cmd_restart ( int cmdc, char** cmdv )

int cmdc
Number of arguments
char** cmdv
Argument vector
int cmd_start Returns OK on success, NO_DIR if the bin/ directory can't be found, or FAIL if the daemon can't be started

Prototyped in: include/ubs-main.h
Calls: sub_help_cmd()src/cmd_help.c
  closedir(), getopt(), opendir(), printf(), readdir(), strcasecmp(), strncmp(), sub_start_proc(), sub_stop_proc(), usleep()