aboutsummaryrefslogtreecommitdiff
path: root/src/prog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/prog.h')
-rw-r--r--src/prog.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/prog.h b/src/prog.h
index 6590d4e..a29de04 100644
--- a/src/prog.h
+++ b/src/prog.h
@@ -43,48 +43,49 @@ struct conn_class
struct prog
{
struct prog *next, *prev;
enum prog_type type;
pid_t pid; /* PID */
- char *tag; /* Entry tag (for diagnostics purposes) */
- char **prereq;
int facility;
union
{
struct
{
struct component *comp;
size_t idx; /* Numeric identifier */
int socket;
struct prog *redir[2]; /* Pointers to redirectors */
time_t timestamp; /* Time of last startup */
size_t failcount; /* Number of failed starts since timestamp */
enum prog_status status; /* Current component status */
- char *runlevels;
/* If status == status_listener: */
size_t num_instances; /* Number of running instances */
/* If comp->type == pies_comp_inetd && status == status_enabled */
struct prog *listener;
union pies_sockaddr_storage sa_storage;
size_t sa_len;
struct conn_class *cclass;
} p;
struct
{
+ char *tag;
struct prog *master;
} r;
struct
{
+ char *tag;
char *command;
} c;
} v;
};
#define IS_COMPONENT(p) ((p)->type == TYPE_COMPONENT)
struct prog *progman_locate (const char *name);
void progman_foreach (int (*filter) (struct prog *, void *data), void *data);
void prog_stop (struct prog *prog, int sig);
void progman_stop_component (struct prog *prog);
+
+char const *prog_tag (struct prog const *prog);

Return to:

Send suggestions and report system problems to the System administrator.