From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/openct/files: openct.rc.2 |
Date: | Tue, 19 Jun 2012 13:57:13 |
Message-Id: | 20120619135654.79AEB2004C@flycatcher.gentoo.org |
1 | flameeyes 12/06/19 13:56:54 |
2 | |
3 | Added: openct.rc.2 |
4 | Log: |
5 | Update init script to use checkpath instead of using keepdir in the ebuild; add an udev USE flag to not install the rules; use EAPI=4; use append-cppflags for -DDEBUG_IFDH. |
6 | |
7 | (Portage version: 2.2.0_alpha110/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-libs/openct/files/openct.rc.2 |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/openct/files/openct.rc.2?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/openct/files/openct.rc.2?rev=1.1&content-type=text/plain |
14 | |
15 | Index: openct.rc.2 |
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/dev-libs/openct/files/openct.rc.2,v 1.1 2012/06/19 13:56:54 flameeyes Exp $ |
21 | |
22 | depend() { |
23 | need localmount |
24 | } |
25 | |
26 | checkconfig() { |
27 | if [ ! -e /etc/openct.conf ] ; then |
28 | eerror "You need an /etc/openct.conf file to run OpenCT" |
29 | return 1 |
30 | fi |
31 | return 0 |
32 | } |
33 | |
34 | start() { |
35 | checkconfig || return 1 |
36 | |
37 | checkpath -d -m 0750 -o openctd:openct /var/run/openct |
38 | |
39 | ebegin "Starting OpenCT" |
40 | /usr/sbin/openct-control init |
41 | eend $? |
42 | } |
43 | |
44 | stop() { |
45 | ebegin "Stopping OpenCT" |
46 | /usr/sbin/openct-control shutdown |
47 | eend $? |
48 | } |