From: | "Justin Lecher (jlec)" <jlec@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-benchmarks/bootchart2/files: bootchart2.init |
Date: | Mon, 02 Apr 2012 13:06:49 |
Message-Id: | 20120402130633.514B32004C@flycatcher.gentoo.org |
1 | jlec 12/04/02 13:06:33 |
2 | |
3 | Added: bootchart2.init |
4 | Log: |
5 | add init script for termination |
6 | |
7 | (Portage version: 2.2.0_alpha96/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-benchmarks/bootchart2/files/bootchart2.init |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/bootchart2/files/bootchart2.init?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/bootchart2/files/bootchart2.init?rev=1.1&content-type=text/plain |
14 | |
15 | Index: bootchart2.init |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | # Copyright 1999-2012 Gentoo Foundation |
19 | # Distributed under the terms of the GNU General Public License v2 |
20 | # $Header: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart2/files/bootchart2.init,v 1.1 2012/04/02 13:06:33 jlec Exp $ |
21 | |
22 | depend() { |
23 | use localmount |
24 | } |
25 | |
26 | start() { |
27 | if /bin/grep -q "rdinitrd=/sbin/bootchartd" /proc/cmdline; then |
28 | if /bin/pidof bootchart-collector> /dev/null 2>&1; then |
29 | ebegin "Scheduling termination of Bootchart" |
30 | /sbin/bootchartd start |
31 | /sbin/bootchartd wait & |
32 | eend $? |
33 | else |
34 | elog "No bootchart process found!" |
35 | eindent |
36 | elog "This script does not start bootchart, but only schedules its termination." |
37 | elog "Bootchart should be started from the kernel command line." |
38 | elog "Please check the README on how to do that." |
39 | eoutdent |
40 | eend 0 |
41 | fi |
42 | } |