diff options
author | Aleksandrs Saveljevs <git-no-reply@zabbix.com> | 2010-06-21 10:04:44 +0400 |
---|---|---|
committer | Aleksandrs Saveljevs <git-no-reply@zabbix.com> | 2010-06-21 10:04:44 +0400 |
commit | 57a00d82bff00746a3784c6d498bf3282b070400 (patch) | |
tree | abf60861c4da089867f6bf1dd14a9cd35b985d22 /include/service.h | |
parent | ead515e6dec7e842859668e4fd6856ae26c6f5d7 (diff) |
- [ZBX-2575] removed outdated and undocumented environment variables from alert scripts (asaveljevs)
[svn merge svn://svn.zabbix.com/branches/1.8 -c 12964]
Diffstat (limited to 'include/service.h')
-rw-r--r-- | include/service.h | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/include/service.h b/include/service.h index 53d5fb9abb4..6eede0c553e 100644 --- a/include/service.h +++ b/include/service.h @@ -28,27 +28,22 @@ extern ZBX_THREAD_HANDLE *threads; -void service_start(void); +void service_start(void); -int ZabbixCreateService(const char *path, int multiple_agents); -int ZabbixRemoveService(void); -int ZabbixStartService(void); -int ZabbixStopService(void); +int ZabbixCreateService(const char *path, int multiple_agents); +int ZabbixRemoveService(void); +int ZabbixStartService(void); +int ZabbixStopService(void); void init_main_process(void); -/* APPLICATION running status */ -/* requred for closing application from service */ -int application_status; +int application_status; /* required for closing application from service */ -#define ZBX_APP_STOPPED 0 -#define ZBX_APP_RUNNED 1 +#define ZBX_APP_STOPPED 0 +#define ZBX_APP_RUNNING 1 -/* ask for running application of closing status */ -#define ZBX_IS_RUNNING (ZBX_APP_RUNNED == application_status) - -/* ask for application closing status */ -#define ZBX_DO_EXIT() application_status = ZBX_APP_STOPPED +#define ZBX_IS_RUNNING() (ZBX_APP_RUNNING == application_status) +#define ZBX_DO_EXIT() application_status = ZBX_APP_STOPPED #define START_MAIN_ZABBIX_ENTRY(a) service_start() |