|
Teonet library
0.4.7
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <errno.h>#include <signal.h>#include <syslog.h>#include "daemon.h"#include "pidfile.h"#include "utils/utils.h"#include "config/conf.h"#include "config/config.h"Functions | |
| void | kill_other (char **argv, int other_pid) |
| Kill started application in daemon mode. More... | |
| void | start_stop_daemon (char **argv, teonet_cfg *conf) |
| Start or stop daemon mode. More... | |
Start stop daemon mode for application.
Created on September 4, 2015, 11:20 PM
| void kill_other | ( | char ** | argv, |
| int | other_pid | ||
| ) |
Kill started application in daemon mode.
| argv | Application argv argument |
| other_pid | Process ID |
Referenced by start_stop_daemon().
| void start_stop_daemon | ( | char ** | argv, |
| teonet_cfg * | conf | ||
| ) |
Start or stop daemon mode.
| argv | Application argv argument |
| conf | Pointer to teonet_cfg structure |
References check_pid(), teonet_cfg::dflag, ERROR_M, FALSE, init_pidfile(), teonet_cfg::kflag, kill_other(), kill_pidfile(), ksnet_printf(), teonet_cfg::port, read_pidfile(), remove_pidfile(), and write_pidfile().
Referenced by ksnet_optRead().