Gentoo Archives: gentoo-commits

From: "Fabio Erculiani (lxnay)" <lxnay@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-nds/389-ds-base/files: start-dirsrv restart-dirsrv
Date: Wed, 28 Jul 2010 14:15:17
Message-Id: 20100728141512.7E2BC2CF37@corvid.gentoo.org
1 lxnay 10/07/28 14:15:12
2
3 Modified: start-dirsrv restart-dirsrv
4 Log:
5 fix start/stop scripts
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.3 net-nds/389-ds-base/files/start-dirsrv
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/files/start-dirsrv?rev=1.3&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/files/start-dirsrv?rev=1.3&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/files/start-dirsrv?r1=1.2&r2=1.3
14
15 Index: start-dirsrv
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/net-nds/389-ds-base/files/start-dirsrv,v
18 retrieving revision 1.2
19 retrieving revision 1.3
20 diff -u -r1.2 -r1.3
21 --- start-dirsrv 23 Jul 2010 14:27:13 -0000 1.2
22 +++ start-dirsrv 28 Jul 2010 14:15:12 -0000 1.3
23 @@ -7,7 +7,8 @@
24 # 2: Server already running
25
26 rc-config stop 389-ds
27 -rc=$(rc-config start 389-ds)
28 +rc-config start 389-ds
29 +rc="${?}"
30 # give the daemon a chance to start
31 sleep 8
32 exit "${rc:-1}"
33
34
35
36 1.2 net-nds/389-ds-base/files/restart-dirsrv
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/files/restart-dirsrv?rev=1.2&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/files/restart-dirsrv?rev=1.2&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-nds/389-ds-base/files/restart-dirsrv?r1=1.1&r2=1.2
41
42 Index: restart-dirsrv
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/net-nds/389-ds-base/files/restart-dirsrv,v
45 retrieving revision 1.1
46 retrieving revision 1.2
47 diff -u -r1.1 -r1.2
48 --- restart-dirsrv 7 Jul 2010 14:31:36 -0000 1.1
49 +++ restart-dirsrv 28 Jul 2010 14:15:12 -0000 1.2
50 @@ -8,7 +8,8 @@
51 # 3: Server could not be stopped
52
53 sleep_time=8
54 -running=$(/etc/init.d/389-ds status &> /dev/null)
55 +/etc/init.d/389-ds status &> /dev/null
56 +running="${?}"
57
58 rc-config stop 389-ds
59 if [ "${?}" = "1" ]; then