summaryrefslogtreecommitdiffabout
path: root/src/process.h
Unidiff
Diffstat (limited to 'src/process.h') (more/less context) (ignore whitespace changes)
-rw-r--r--src/process.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h
index b6d7091..27ee049 100644
--- a/src/process.h
+++ b/src/process.h
@@ -1,36 +1,38 @@
1#ifndef __PROCESS_H 1#ifndef __PROCESS_H
2#define __PROCESS_H 2#define __PROCESS_H
3 3
4#include <string> 4#include <string>
5#include <map> 5#include <map>
6using namespace std; 6using namespace std;
7 7
8class configuration; 8class configuration;
9 9
10typedef map<string,string> headers_t; 10typedef map<string,string> headers_t;
11 11
12class process { 12class process {
13 public: 13 public:
14 string pidfile; 14 string pidfile;
15 string restart_cmd; 15 string restart_cmd;
16 string notify; 16 string notify;
17 string user; 17 string user;
18 string group; 18 string group;
19 string chroot; 19 string chroot;
20 headers_t mailto_headers; 20 headers_t mailto_headers;
21 21
22 int patience; 22 int patience;
23 23
24 process() 24 process()
25 : patience(0) { } 25 : patience(0) { }
26 26
27 void check(const string& id,configuration& config); 27 void check(const string& id,configuration& config);
28 void launch(const string& id,configuration& config); 28 void launch(const string& id,configuration& config);
29 void do_notify(const string& id,const string& event,const string& description,configuration& config); 29 void do_notify(const string& id,const string& event,const string& description,configuration& config);
30 void notify_mailto(const string& email,const string& id,const string& event, 30 void notify_mailto(const string& email,const string& id,const string& event,
31 const string& description,configuration& config); 31 const string& description,configuration& config);
32
33 void signal(int signum) const;
32}; 34};
33 35
34typedef map<string,process> processes_t; 36typedef map<string,process> processes_t;
35 37
36#endif /* __PROCESS_H */ 38#endif /* __PROCESS_H */