@@ -75,20 +75,13 @@ typedef void (supervisor_cb_f) (void *udata, struct child_info_s *ci);
75
75
76
76
void supervisor_children_init (void );
77
77
78
- /**
79
- * Sets an optional function that will be used just after the fork
80
- */
78
+ /* Sets an optional function that will be used just after the fork */
81
79
void supervisor_set_callback_postfork (supervisor_postfork_f * cb , void * udata );
82
80
83
81
void supervisor_children_fini (void );
84
82
85
83
guint supervisor_children_cleanall (void );
86
84
87
- /**
88
- * @deprecated use supervisor_children_kill() instead
89
- */
90
- guint supervisor_children_startall (void * udata , supervisor_cb_f cb );
91
-
92
85
void supervisor_children_stopall (guint max_retries );
93
86
94
87
guint supervisor_children_killall (int sig );
@@ -97,201 +90,87 @@ guint supervisor_children_catharsis(void *udata, supervisor_cb_f cb);
97
90
98
91
gboolean supervisor_children_register (const gchar * key , const gchar * cmd );
99
92
100
- /**
101
- * Marks the services still obsolete as DISABLED and to be stopped.
102
- * Services still carry the OBSOLETE flag after this step.
103
- */
93
+ /* Marks the services still obsolete as DISABLED and to be stopped.
94
+ Services still carry the OBSOLETE flag after this step. */
104
95
guint supervisor_children_disable_obsolete (void );
105
96
106
- /**
107
- * @deprecated will be deleted soon, please use supervisor_children_disable_obsolete() then supervisor_children_kill_disabled()
108
- */
109
- guint supervisor_children_kill_obsolete (void );
110
-
111
- /**
112
- * Mark all the services as obsolete.
113
- * This is used when reloading a configuration.
114
- */
97
+ /* Mark all the services as obsolete. This is used when reloading a config. */
115
98
guint supervisor_children_mark_obsolete (void );
116
99
117
- /**
118
- * Stops the UP services that are in state that does not allow them to run.
119
- *
120
- * This includes services DOWN, BROKEN, STOPPED, DISABLED.
121
- * Will send SIGKILL until expiration, then SIGTERM.
122
- */
100
+ /* Stops the UP services that are in state that does not allow them to run.
101
+ This includes services DOWN, BROKEN, STOPPED, DISABLED.
102
+ Will send SIGKILL until expiration, then SIGTERM. */
123
103
guint supervisor_children_kill_disabled (void );
124
104
125
- /**
126
- * starts allt the stopped services in a state proper to be restarted
127
- */
105
+ /* starts allt the stopped services in a state proper to be restarted */
128
106
guint supervisor_children_start_enabled (void * udata , supervisor_cb_f cb );
129
107
130
- /**
131
- * Sets the 'enabled' flag on the service
132
- */
108
+ /* Sets the 'enabled' flag on the service */
133
109
int supervisor_children_enable (const char * key , gboolean enable );
134
110
135
- /**
136
- * Sets the 'autorespawn' flag on this service
137
- */
111
+ /* Sets the 'autorespawn' flag on this service */
138
112
int supervisor_children_set_respawn (const char * key , gboolean enabled );
139
113
140
- /**
141
- * Marks the service to be started or stopped.
142
- */
114
+ /* Marks the service to be started or stopped. */
143
115
int supervisor_children_status (const char * key , gboolean to_be_started );
144
116
145
- /**
146
- * Starts a service that died too often
147
- */
117
+ /* Starts a service that died too often */
148
118
int supervisor_children_repair (const char * key );
149
119
150
- /**
151
- * Sets/Disable the "delayed restart" behavior for a process
152
- */
120
+ /* Sets/Disable the "delayed restart" behavior for a process */
153
121
int supervisor_children_set_delay (const char * key , gboolean enabled );
154
122
155
- /**
156
- * Calls supervisor_children_repair() on each broken service
157
- */
123
+ /* Calls supervisor_children_repair() on each broken service */
158
124
int supervisor_children_repair_all (void );
159
125
160
- /**
161
- * Restart a service
162
- */
126
+ /* Restart a service */
163
127
int supervisor_children_restart (const char * key );
164
128
165
- /**
166
- *
167
- */
168
129
int supervisor_children_set_limit (const gchar * key ,
169
130
enum supervisor_limit_e what , gint64 value );
170
131
171
- /**
172
- * Runs the children list and call the callback fnction on each
173
- * element
174
- */
132
+ /* Runs the children list and call the callback fnction on each element */
175
133
gboolean supervisor_run_services (void * ptr , supervisor_cb_f callback );
176
134
177
- /**
178
- *
179
- * @param key
180
- * @param dir
181
- * @return
182
- */
183
135
int supervisor_children_set_working_directory (const gchar * key ,
184
136
const gchar * dir );
185
137
186
- /**
187
- *
188
- * @param key
189
- * @param envkey
190
- * @param envval
191
- * @param separator if not 0, keep the previous value and prepends the new value
192
- * @return
193
- */
194
138
int supervisor_children_setenv (const gchar * key , const gchar * envkey ,
195
139
const gchar * envval , gchar separator );
196
140
197
141
void supervisor_children_inherit_env (const gchar * key );
198
142
199
- /**
200
- *
201
- * @param key
202
- * @return
203
- */
204
143
int supervisor_children_clearenv (const gchar * key );
205
144
206
- /**
207
- * @param key
208
- * @param flags
209
- * @return
210
- */
211
145
int supervisor_children_set_user_flags (const gchar * key , guint32 flags );
212
146
213
- /**
214
- * @param key
215
- * @param flags
216
- * @return
217
- */
218
147
int supervisor_children_del_user_flags (const gchar * key , guint32 flags );
219
148
220
- /**
221
- * @param key
222
- * @param group NULL to clear the group
223
- * @return
224
- */
225
149
int supervisor_children_set_group (const gchar * key , const gchar * group );
226
150
227
- /**
228
- *
229
- * @param key
230
- * @param ci
231
- * @return
232
- */
233
151
int supervisor_children_get_info (const gchar * key , struct child_info_s * ci );
234
152
235
- /**
236
- *
237
- * @param key
238
- * @param uid
239
- * @param gid
240
- * @return
241
- */
242
153
int supervisor_children_set_ids (const gchar * key , gint32 uid , gint32 gid );
243
154
244
155
int supervisor_children_set_delay_sigkill (const char * key , time_t delay );
245
156
246
157
/* Fork and pipe ----------------------------------------------------------- */
247
158
248
- /**
249
- *
250
- * @param str_cmd
251
- * @return
252
- */
253
159
int command_get_pipe (const gchar * str_cmd );
254
160
255
161
/* Privileges -------------------------------------------------------------- */
256
162
257
- /**
258
- *
259
- * @param user_name
260
- * @param group_name
261
- * @param error
262
- * @return
263
- */
264
163
gboolean supervisor_rights_init (const char * user_name , const char * group_name ,
265
164
GError * * error );
266
165
267
- /**
268
- *
269
- * @return
270
- */
271
166
int supervisor_rights_gain (void );
272
167
273
- /**
274
- *
275
- * @return
276
- */
277
168
int supervisor_rights_lose (void );
278
169
279
170
/* Processus limits */
280
171
281
- /**
282
- *
283
- * @param what
284
- * @param value
285
- * @return
286
- */
287
172
int supervisor_limit_set (enum supervisor_limit_e what , gint64 value );
288
173
289
- /**
290
- *
291
- * @param what
292
- * @param value
293
- * @return
294
- */
295
174
int supervisor_limit_get (enum supervisor_limit_e what , gint64 * value );
296
175
297
176
#endif
0 commit comments