author | Michael Krelin <hacker@klever.net> | 2004-07-24 00:24:07 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2004-07-24 00:24:07 (UTC) |
commit | fbc32792b8d8266ff90aa60403f5da78739236f4 (patch) (unidiff) | |
tree | 77bc3f196a3733c9c86290f8a73d60bb609bbdd5 /src/process.h | |
parent | 125671c860a82643d36bc3da279d0b831fae4b34 (diff) | |
download | dudki-fbc32792b8d8266ff90aa60403f5da78739236f4.zip dudki-fbc32792b8d8266ff90aa60403f5da78739236f4.tar.gz dudki-fbc32792b8d8266ff90aa60403f5da78739236f4.tar.bz2 |
processes specified by process names (pidof-like).
-rw-r--r-- | src/process.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h index 27ee049..90b12d9 100644 --- a/src/process.h +++ b/src/process.h | |||
@@ -7,16 +7,17 @@ using namespace std; | |||
7 | 7 | ||
8 | class configuration; | 8 | class configuration; |
9 | 9 | ||
10 | typedef map<string,string> headers_t; | 10 | typedef map<string,string> headers_t; |
11 | 11 | ||
12 | class process { | 12 | class process { |
13 | public: | 13 | public: |
14 | string pidfile; | 14 | string pidfile; |
15 | string process_name; | ||
15 | string restart_cmd; | 16 | string restart_cmd; |
16 | string notify; | 17 | string notify; |
17 | string user; | 18 | string user; |
18 | string group; | 19 | string group; |
19 | string chroot; | 20 | string chroot; |
20 | headers_t mailto_headers; | 21 | headers_t mailto_headers; |
21 | 22 | ||
22 | int patience; | 23 | int patience; |
@@ -26,13 +27,18 @@ class process { | |||
26 | 27 | ||
27 | void check(const string& id,configuration& config); | 28 | void check(const string& id,configuration& config); |
28 | void launch(const string& id,configuration& config); | 29 | void launch(const string& id,configuration& config); |
29 | void do_notify(const string& id,const string& event,const string& description,configuration& config); | 30 | 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, | 31 | void notify_mailto(const string& email,const string& id,const string& event, |
31 | const string& description,configuration& config); | 32 | const string& description,configuration& config); |
32 | 33 | ||
33 | void signal(int signum) const; | 34 | void signal(int signum) const; |
35 | void check() const; | ||
36 | |||
37 | static void prepare_herd(); | ||
38 | static void gather_proc_info(); | ||
39 | static void unprepare_herd(); | ||
34 | }; | 40 | }; |
35 | 41 | ||
36 | typedef map<string,process> processes_t; | 42 | typedef map<string,process> processes_t; |
37 | 43 | ||
38 | #endif /* __PROCESS_H */ | 44 | #endif /* __PROCESS_H */ |