commit d270fc1aee18081c570a901e6e91c7bf94f8aac4
parent bca056ee652accadcce5d954ba80bcb31fde47d8
Author: leitner <leitner>
Date: Thu, 4 Mar 2004 17:47:16 +0000
add -D to msvc -h
remove debug printf
Diffstat:
3 files changed, 4 insertions(+), 23 deletions(-)
diff --git a/CHANGES b/CHANGES
@@ -11,6 +11,7 @@
upload state to new minit after update (Florian Westphal)
#include minit.h and use MINITROOT consistently (Lordy)
Don't assume MINITROOT is 10 bytes long (Erich Schubert)
+ add man pages!! (Erich Schubert)
add a way to ask minit for dependencies
0.9.1:
diff --git a/minit.c b/minit.c
@@ -530,11 +530,11 @@ ok:
write(outfd,"1:",2);
{
int i;
-#if 1
+#if 0
printf("looking for father==%d\n",idx);
#endif
for (i=0; i<=maxprocess; ++i) {
-#if 1
+#if 0
printf("pid of %d(%s) is %lu, father is %d\n",
i,root[i].name?root[i].name:"[none]",root[i].pid,root[i].father);
#endif
diff --git a/msvc.c b/msvc.c
@@ -144,6 +144,7 @@ int main(int argc,char *argv[]) {
" -k\tkill; send SIGKILL\n"
" -g\tget; output just the PID\n"
" -Ppid\tset PID of service (for pidfilehack)\n"
+ " -D service\tprint services started as dependency\n"
" -C\tClear; remove service form active list\n\n");
return 0;
}
@@ -286,24 +287,3 @@ dokill:
return 1;
}
}
-
-/*
- -u Up. If the service is not running, start it. If the service stops,
- restart it.
- -d Down. If the service is running, send it a TERM signal and then a CONT
- signal. After it stops, do not restart it.
- -o Once. If the service is not running, start it. Do not restart it if it
- stops.
- -r Tell supervise that the service is normally running; this affects status
- messages.
- -s Tell supervise that the service is normally stopped; this affects status
- messages.
- -p Pause. Send the service a STOP signal.
- -c Continue. Send the service a CONT signal.
- -h Hangup. Send the service a HUP signal.
- -a Alarm. Send the service an ALRM signal.
- -i Interrupt. Send the service an INT signal.
- -t Terminate. Send the service a TERM signal.
- -k Kill. Send the service a KILL signal.
- -x Exit. supervise will quit as soon as the service is down.
-*/