diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-01-08 12:42:25 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-01-08 12:42:25 +0000 |
commit | eca73303556be5a284fb89cf597812fb28c5f4e1 (patch) | |
tree | ceded146bfc737a2b9f18adabd2f6a2febaec8c6 /sys-apps/collectl | |
parent | amd64 stable wrt #297531 (diff) | |
download | historical-eca73303556be5a284fb89cf597812fb28c5f4e1.tar.gz historical-eca73303556be5a284fb89cf597812fb28c5f4e1.tar.bz2 historical-eca73303556be5a284fb89cf597812fb28c5f4e1.zip |
Add a "flush" init.d operation #292864#18 by Mark Seger.
Package-Manager: portage-2.2_rc61/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/collectl')
-rw-r--r-- | sys-apps/collectl/ChangeLog | 5 | ||||
-rw-r--r-- | sys-apps/collectl/Manifest | 10 | ||||
-rwxr-xr-x | sys-apps/collectl/files/collectl.initd | 16 |
3 files changed, 22 insertions, 9 deletions
diff --git a/sys-apps/collectl/ChangeLog b/sys-apps/collectl/ChangeLog index d6515be8d19b..4709c95a81cf 100644 --- a/sys-apps/collectl/ChangeLog +++ b/sys-apps/collectl/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-apps/collectl # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/collectl/ChangeLog,v 1.8 2010/01/08 02:30:29 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/collectl/ChangeLog,v 1.9 2010/01/08 12:42:25 vapier Exp $ + + 08 Jan 2010; Mike Frysinger <vapier@gentoo.org> files/collectl.initd: + Add a "flush" init.d operation #292864#18 by Mark Seger. *collectl-3.4.0 (08 Jan 2010) diff --git a/sys-apps/collectl/Manifest b/sys-apps/collectl/Manifest index 94909ca998a6..ddae286da4f6 100644 --- a/sys-apps/collectl/Manifest +++ b/sys-apps/collectl/Manifest @@ -2,17 +2,17 @@ Hash: SHA256 AUX collectl-3.4.0-install.patch 1572 RMD160 08687f1039362ea79dc0357e597245da11489e1a SHA1 655a332a138690942191c464d86d638f0e4be382 SHA256 098af63394b89f4590eb7b6e51a0371a2289e1d1ac3741765b3fe1ce5552a47e -AUX collectl.initd 497 RMD160 64ad3b43dc0d4903f17423389f2ec5d5a003dc8c SHA1 f29bc54372512c51744ef1e77c9f12af6fff57a9 SHA256 032f057b2d69304f130126d84de6c0c0c575238a094fffe50c822adc5252cbd2 +AUX collectl.initd 649 RMD160 2f1aaa615288240e0a4de00b9cb88c0d8292f35d SHA1 8ec813b7b889e77ba06c9d2c8da9265526f00caa SHA256 1abc161c4149c77386586939dcb92d1e488b4d2b44c0a665f5ef6b46f993c3f6 DIST collectl-3.2.1.src.tar.gz 301877 RMD160 37e7e6b8135fa143caa73a7467c83c940af14f2b SHA1 ddc2f54132172f11c767d8628193ed55c4b173d3 SHA256 2cb4e9e87090e3227a99bd07dacb3bc5568af33ba1f9d38ec89a3357435b7f0d DIST collectl-3.4.0.src.tar.gz 381963 RMD160 3d1c08a7609d9a31ec7bfafe805fadf9195143a4 SHA1 009d31cc4f013839b3a7e5052d45c00bdeb292a5 SHA256 1b0f7b57257fa3f8edc4734205ee38075db09ad6ebb1811f3c8eae5e4d995071 EBUILD collectl-3.2.1.ebuild 1049 RMD160 3039fff178b32da524b05c613cde85b8f5498acf SHA1 572093acd8c7c19f13cd20cdb3b311dca80dbe2d SHA256 e47df6c3864f3029f6b0710e1b91876595974e61e870970c532d63e68471b599 EBUILD collectl-3.4.0.ebuild 1067 RMD160 8ff531c07e8b08694f4ab4a43bf6861a65ba9d08 SHA1 9111bcda186479d87b0002849ca5d96ac9c3c993 SHA256 93a858f3b2e3363c1c827286bd904825a0f083042202444597b58a7496187714 -MISC ChangeLog 1310 RMD160 4ec1cafe33240b2d1b3689c472b6986095893930 SHA1 e8c681f4925b05d37f95b8e88dc4ac2dc8dc14cc SHA256 3bc03cb20e28575cdfbb8f5933a38103b3de0ef660e25ee86f4c3ed9a4025316 +MISC ChangeLog 1442 RMD160 bb31ee34e12f04e2f42c793f91cdc40b0baad994 SHA1 dee16fb812bc9b3f70cf432a587426422d1eabda SHA256 d0847c2f7f9d2d2fc50984aed0943508674c844d080684daca4cb73b1c8f7e28 MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) -iF4EAREIAAYFAktGmNEACgkQTwhj9JtAlp4p3gD/bDG5z0UCacg2gxxIkGenqQ5M -cQ7v4/u9TgPozZH5mNoBAJqt+iBeMA1JJ90yKHLvh2UmsdxFL04PsHWmuRjsJpcl -=+wal +iF4EAREIAAYFAktHKDUACgkQTwhj9JtAlp4TQgD/S9NddtugP2qygl+36vG7Il/c +zfws9v3d80v0MnWoAGMA/iGXm0esT+qOnlksQLnsr1SnbcPEG1XxzlS7CUWkE3Ab +=M14P -----END PGP SIGNATURE----- diff --git a/sys-apps/collectl/files/collectl.initd b/sys-apps/collectl/files/collectl.initd index 99b0290a327c..c55f14a221bb 100755 --- a/sys-apps/collectl/files/collectl.initd +++ b/sys-apps/collectl/files/collectl.initd @@ -1,19 +1,29 @@ #!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/collectl/files/collectl.initd,v 1.2 2009/11/15 01:29:22 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/collectl/files/collectl.initd,v 1.3 2010/01/08 12:42:24 vapier Exp $ + +opts="flush" + +pidfile="/var/run/collectl.pid" start() { ebegin "Starting collectl" start-stop-daemon \ --start \ - --pidfile /var/run/collectl.pid \ + --pidfile ${pidfile} \ --exec /usr/bin/collectl -- -D eend $? } stop() { ebegin "Stopping collectl" - start-stop-daemon --stop --pidfile /var/run/collectl.pid + start-stop-daemon --stop --pidfile ${pidfile} + eend $? +} + +flush() { + einfo "Flushing collectl buffers" + start-stop-daemon --oknodo --stop --signal USR1 --pidfile ${pidfile} eend $? } |