From 9f2403dffae514dca431828014a2dc9c9de4e61f Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 14 Dec 2007 14:12:38 +0000 Subject: Remove Gentoo copyright from all files that I know I have written --- init.d/local | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'init.d/local') diff --git a/init.d/local b/init.d/local index d1c30d40..0873ac8e 100755 --- a/init.d/local +++ b/init.d/local @@ -1,5 +1,4 @@ #!/sbin/runscript -# Copyright 1999-2007 Gentoo Foundation # Copyright 2007 Roy Marples # All rights reserved @@ -24,8 +23,7 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. -description="Executes user command in /etc/conf.d/local.start when starting \ -and /etc/conf.d/local.stop when stopping." +description="Executes user commands in /etc/conf.d/local" depend() { after * @@ -35,8 +33,11 @@ depend() { start() { ebegin "Starting local" - # Add any misc programs that should be started - # to /etc/conf.d/local.start + if type local_start >/dev/null 2>&1; then + local_start + fi + + # Support old configs if [ -e /etc/conf.d/local.start ]; then . /etc/conf.d/local.start fi @@ -47,8 +48,11 @@ start() { stop() { ebegin "Stopping local" - # Add any misc programs that should be stopped - # to /etc/conf.d/local.stop + if type local_start >/dev/null 2>&1; then + local_stop + fi + + # Support old configs if [ -e /etc/conf.d/local.stop ]; then . /etc/conf.d/local.stop fi -- cgit v1.2.3