From 9fa54a8e8036262a7ea599d68e04fcbd8213506e Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 3 Mar 2012 09:16:27 -0600 Subject: 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 X-Gentoo-Bug: 406713 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=406713 --- man/runscript.8 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'man/runscript.8') diff --git a/man/runscript.8 b/man/runscript.8 index 3b037ce7..64f36b15 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. -- cgit v1.2.3