Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
daemon.h File Reference
#include "config/conf.h"

Go to the source code of this file.

Functions

void start_stop_daemon (char **argv, teonet_cfg *conf)
 Start or stop daemon mode. More...
 

Detailed Description

Author
Kirill Scherba kiril.nosp@m.l@sc.nosp@m.herba.nosp@m..ru

Created on September 4, 2015, 11:21 PM

Function Documentation

void start_stop_daemon ( char **  argv,
teonet_cfg conf 
)

Start or stop daemon mode.

Parameters
argvApplication argv argument
confPointer 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().