From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9C4BA138010 for ; Tue, 16 Oct 2012 19:29:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8184BE027D; Tue, 16 Oct 2012 19:29:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0A50EE027D for ; Tue, 16 Oct 2012 19:29:09 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6A9C133D8DD for ; Tue, 16 Oct 2012 19:29:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 17FC0E5436 for ; Tue, 16 Oct 2012 19:29:08 +0000 (UTC) From: "Christian Ruppert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christian Ruppert" Message-ID: <1350415725.a3ff6cce97d2437438a955c781267df1f4f49bcd.idl0r@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: man/ X-VCS-Repository: proj/openrc X-VCS-Files: man/runscript.8 X-VCS-Directories: man/ X-VCS-Committer: idl0r X-VCS-Committer-Name: Christian Ruppert X-VCS-Revision: a3ff6cce97d2437438a955c781267df1f4f49bcd X-VCS-Branch: master Date: Tue, 16 Oct 2012 19:29:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 85bd78e5-f192-4945-85b4-354db4994f08 X-Archives-Hash: ff4a7ae927b9ebcfe3257988925cf287 commit: a3ff6cce97d2437438a955c781267df1f4f49bcd Author: Christian Ruppert gentoo org> AuthorDate: Tue Oct 16 19:28:45 2012 +0000 Commit: Christian Ruppert gentoo org> CommitDate: Tue Oct 16 19:28:45 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=a3ff6cce Revert "Prepare for real "restart" support" This reverts commit c5bb6829d00a4034f7294aa4af79d5d114572ac1. That was meant for my local devel branch :) --- man/runscript.8 | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/man/runscript.8 b/man/runscript.8 index 4c8c985..044bef7 100644 --- a/man/runscript.8 +++ b/man/runscript.8 @@ -454,6 +454,15 @@ depend() # This also applies to start_post, stop_pre and stop_post. start_pre() { + if [ "$RC_CMD" = restart ]; then + # This block will only execute for a restart command. Use a + # structure like this if you need special processing for a + # restart which you do not need for a normal start. + # The function can also fail from here, which will mean that a + # restart can fail. + # This logic can also be used in start_post, stop_pre and + # stop_post. + fi # Ensure that our dirs are correct checkpath --dir --owner foo:foo --mode 0664 \\ /var/run/foo /var/cache/foo