public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/openrc:master commit in: init.d/, conf.d/
Date: Fri, 24 Jun 2011 02:58:26 +0000 (UTC)	[thread overview]
Message-ID: <013e7fb9fc08acd33e944659ff8e7a18aee2b69f.williamH@gentoo> (raw)

commit:     013e7fb9fc08acd33e944659ff8e7a18aee2b69f
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 24 02:52:44 2011 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Fri Jun 24 02:52:44 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=013e7fb9

allow options to be passed to killall5

This allows options to be passed to killall5 by the killprocs script.
This was added so that certain processes will not be killed during
shutdown.

x-Gentoo-Bug: 371625
x-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=371625

---
 conf.d/Makefile.Linux |    2 +-
 conf.d/killprocs      |    3 +++
 init.d/killprocs.in   |    4 ++--
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/conf.d/Makefile.Linux b/conf.d/Makefile.Linux
index 37745de..369b3df 100644
--- a/conf.d/Makefile.Linux
+++ b/conf.d/Makefile.Linux
@@ -1,2 +1,2 @@
-CONF+=	consolefont dmesg hwclock keymaps modules
+CONF+=	consolefont dmesg hwclock keymaps killprocs modules
 SOS=	Linux

diff --git a/conf.d/killprocs b/conf.d/killprocs
new file mode 100644
index 0000000..0cf10d0
--- /dev/null
+++ b/conf.d/killprocs
@@ -0,0 +1,3 @@
+# If you wish to pass any options to killall5 during shutdown,
+# you should do so here.
+killall5_opts=""

diff --git a/init.d/killprocs.in b/init.d/killprocs.in
index 7132e9e..2d398d2 100644
--- a/init.d/killprocs.in
+++ b/init.d/killprocs.in
@@ -12,11 +12,11 @@ depend()
 start()
 {
 	ebegin "Terminating remaining processes"
-	killall5 -15
+	killall5 -15 ${killall5_opts}
 	sleep 1
 	eend 0
 	ebegin "Killing remaining processes"
-	killall5 -9
+	killall5 -9 ${killall5_opts}
 	sleep 1
 	eend 0
 }



             reply	other threads:[~2011-06-24  2:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-24  2:58 William Hubbs [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-07-04  7:52 [gentoo-commits] proj/openrc:master commit in: init.d/, conf.d/ Robin H. Johnson
2011-09-27 16:16 Christian Ruppert
2011-11-06 20:04 William Hubbs
2011-11-07  4:07 William Hubbs
2011-11-23  0:55 William Hubbs
2011-11-26 18:22 Mike Frysinger
2012-02-18 19:11 William Hubbs
2012-02-18 19:11 William Hubbs
2012-10-26  0:58 William Hubbs
2014-01-05 21:59 William Hubbs
2014-08-22 19:10 William Hubbs
2014-08-08 23:19 ` William Hubbs
2016-01-13 17:02 William Hubbs
2016-01-19 19:37 William Hubbs
2016-04-25 17:12 William Hubbs
2017-05-22 17:54 William Hubbs
2017-10-06 19:44 William Hubbs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=013e7fb9fc08acd33e944659ff8e7a18aee2b69f.williamH@gentoo \
    --to=williamh@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox