summaryrefslogtreecommitdiff
path: root/man/runscript.8
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-03-03 09:16:27 -0600
committerWilliam Hubbs <williamh@gentoo.org>2012-03-03 09:22:44 -0600
commit9fa54a8e8036262a7ea599d68e04fcbd8213506e (patch)
treea353dd396aa67b56bbca102f158e5a5e2e4b1090 /man/runscript.8
parent7a1e4ef606a814b124fc35136c2821484981e6cb (diff)
downloadopenrc-9fa54a8e8036262a7ea599d68e04fcbd8213506e.tar.gz
openrc-9fa54a8e8036262a7ea599d68e04fcbd8213506e.tar.bz2
openrc-9fa54a8e8036262a7ea599d68e04fcbd8213506e.tar.xz
Runscript: allow extra_commands to be run in chroots
The commands defined in the extra_commands variable do not depend on whether the service is stopped or started, so it is valid to run them in chroot environments. Also, add a note to the runscript man page about the commands in extra_commands being able to run whether or not the service is started. Reported-by: Robin Johnson <robbat2@gentoo.org> X-Gentoo-Bug: 406713 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=406713
Diffstat (limited to 'man/runscript.8')
-rw-r--r--man/runscript.83
1 files changed, 2 insertions, 1 deletions
diff --git a/man/runscript.8 b/man/runscript.8
index 3b037ce..64f36b1 100644
--- a/man/runscript.8
+++ b/man/runscript.8
@@ -92,7 +92,8 @@ or stopping them.
The following variables affect the service script:
.Bl -tag -width "RC_DEFAULTLEVEL"
.It Ar extra_commands
-Space separated list of extra commands the service defines.
+Space separated list of extra commands the service defines. These should
+not depend on the service being stopped or started.
.It Ar extra_started_commands
Space separated list of extra commands the service defines. These only work if
the service has already been started.