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
@@ -46,8 +46,6 @@ 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
{
@@ -60,7 +58,6 @@ struct prog
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 */
@@ -72,11 +69,13 @@ struct prog
struct
{
+ char *tag;
struct prog *master;
} r;
struct
{
+ char *tag;
char *command;
} c;
} v;
@@ -88,3 +87,5 @@ 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.