Improve examples/var_service READMEs

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2014-02-21 12:55:43 +01:00
parent 265a74b983
commit 192c14bd87
13 changed files with 71 additions and 2 deletions

View File

@ -9,6 +9,15 @@ env - PATH=... <other vars=...> runsvdir /var/service &
from one of system startup scripts. (Google "man runsvdir" and "man runsv" from one of system startup scripts. (Google "man runsvdir" and "man runsv"
for more info about these tools). for more info about these tools).
You can try or debug an individual service by running its SERVICE_DIR/run script.
In this case, its stdout and stderr go to your terminal.
You can also run "runsv SERVICE_DIR", which runs both the service
and its logger service (SERVICE_DIR/log/run) if logger service exists.
If logger service exists, the output will go to it instead of the terminal.
"runsvdir DIR" merely runs "runsv SERVICE_DIR" for every subdirectory in DIR.
Some existing examples: Some existing examples:
var_service/dhcp_if - var_service/dhcp_if -
@ -47,8 +56,8 @@ This even works while fw service runs: if dhcp signals fw to (re)start
while fw runs, fw will not stop after its execution, but will re-execute once, while fw runs, fw will not stop after its execution, but will re-execute once,
picking up dhcp's new configuration. picking up dhcp's new configuration.
This is achieved very simply by having This is achieved very simply by having
# Make ourself one-shot # Make ourself one-shot
sv o . sv o .
at the very beginning of fw/run script, not at the end. at the very beginning of fw/run script, not at the end.
Therefore, any "sv u /var/run/service/fw" command by any other Therefore, any "sv u /var/run/service/fw" command by any other
script "undoes" o(ne-shot) command if fw still runs, thus script "undoes" o(ne-shot) command if fw still runs, thus

View File

@ -0,0 +1,5 @@
The real README file is one directory up.
This directory's run script can have useful comments.
If it doesn't but you feel it should, please send a patch
to busybox's mailing list.

View File

@ -0,0 +1,5 @@
The real README file is one directory up.
This directory's run script can have useful comments.
If it doesn't but you feel it should, please send a patch
to busybox's mailing list.

View File

@ -0,0 +1,5 @@
The real README file is one directory up.
This directory's run script can have useful comments.
If it doesn't but you feel it should, please send a patch
to busybox's mailing list.

View File

@ -0,0 +1,5 @@
The real README file is one directory up.
This directory's run script can have useful comments.
If it doesn't but you feel it should, please send a patch
to busybox's mailing list.

View File

@ -0,0 +1,5 @@
The real README file is one directory up.
This directory's run script can have useful comments.
If it doesn't but you feel it should, please send a patch
to busybox's mailing list.

View File

@ -0,0 +1,5 @@
The real README file is one directory up.
This directory's run script can have useful comments.
If it doesn't but you feel it should, please send a patch
to busybox's mailing list.

View File

@ -0,0 +1,5 @@
The real README file is one directory up.
This directory's run script can have useful comments.
If it doesn't but you feel it should, please send a patch
to busybox's mailing list.

View File

@ -0,0 +1,5 @@
The real README file is one directory up.
This directory's run script can have useful comments.
If it doesn't but you feel it should, please send a patch
to busybox's mailing list.

View File

@ -0,0 +1,5 @@
The real README file is one directory up.
This directory's run script can have useful comments.
If it doesn't but you feel it should, please send a patch
to busybox's mailing list.

View File

@ -0,0 +1,5 @@
The real README file is one directory up.
This directory's run script can have useful comments.
If it doesn't but you feel it should, please send a patch
to busybox's mailing list.

View File

@ -0,0 +1,5 @@
The real README file is one directory up.
This directory's run script can have useful comments.
If it doesn't but you feel it should, please send a patch
to busybox's mailing list.

View File

@ -0,0 +1,5 @@
The real README file is one directory up.
This directory's run script can have useful comments.
If it doesn't but you feel it should, please send a patch
to busybox's mailing list.