unix/aix/APIService.cpp File Reference
#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <signal.h>
#include <pwd.h>
#include "APIServer.hpp"
Include dependency graph for unix/aix/APIService.cpp:

Go to the source code of this file.

Macros

#define ENABLE_NOBODY
 
#define RUN_AS_DAEMON
 
#define OOREXX_PIDFILE   "/var/run/ooRexx.pid"
 

Functions

void Run (bool asService)
 
void Stop (int signo)
 
static bool morph2daemon (void)
 
int main (int argc, char *argv[])
 

Variables

bool run_as_daemon = true
 
APIServer apiServer
 

Macro Definition Documentation

◆ ENABLE_NOBODY

#define ENABLE_NOBODY

Definition at line 57 of file unix/aix/APIService.cpp.

◆ OOREXX_PIDFILE

#define OOREXX_PIDFILE   "/var/run/ooRexx.pid"

Definition at line 65 of file unix/aix/APIService.cpp.

◆ RUN_AS_DAEMON

#define RUN_AS_DAEMON

Definition at line 62 of file unix/aix/APIService.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 197 of file unix/aix/APIService.cpp.

References morph2daemon(), OOREXX_PIDFILE, Run(), run_as_daemon, and Stop().

◆ morph2daemon()

static bool morph2daemon ( void  )
static

Definition at line 129 of file unix/aix/APIService.cpp.

References OOREXX_PIDFILE, and run_as_daemon.

Referenced by main().

◆ Run()

void Run ( bool  asService)

◆ Stop()

void Stop ( int  signo)

Definition at line 107 of file unix/aix/APIService.cpp.

References apiServer, and APIServer::terminateServer().

Referenced by main().

Variable Documentation

◆ apiServer

APIServer apiServer

Definition at line 72 of file unix/aix/APIService.cpp.

Referenced by Run(), and Stop().

◆ run_as_daemon

bool run_as_daemon = true

Definition at line 66 of file unix/aix/APIService.cpp.

Referenced by main(), and morph2daemon().