1 |
vapier 11/05/28 16:57:48 |
2 |
|
3 |
Modified: sshd.rc6.2 |
4 |
Log: |
5 |
Move custom opts to checkconfig and include those when verifying config sanity #367303 by Horst Prote. |
6 |
|
7 |
(Portage version: 2.2.0_alpha33/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 net-misc/openssh/files/sshd.rc6.2 |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openssh/files/sshd.rc6.2?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openssh/files/sshd.rc6.2?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openssh/files/sshd.rc6.2?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: sshd.rc6.2 |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/openssh/files/sshd.rc6.2,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- sshd.rc6.2 24 Jan 2011 02:55:47 -0000 1.1 |
23 |
+++ sshd.rc6.2 28 May 2011 16:57:48 -0000 1.2 |
24 |
@@ -1,7 +1,7 @@ |
25 |
#!/sbin/runscript |
26 |
# Copyright 1999-2011 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/files/sshd.rc6.2,v 1.1 2011/01/24 02:55:47 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/files/sshd.rc6.2,v 1.2 2011/05/28 16:57:48 vapier Exp $ |
30 |
|
31 |
opts="${opts} reload checkconfig gen_keys" |
32 |
|
33 |
@@ -27,7 +27,12 @@ |
34 |
|
35 |
gen_keys || return 1 |
36 |
|
37 |
- "${SSHD_BINARY}" -t ${myopts} || return 1 |
38 |
+ [ "${SSHD_PIDFILE}" != "/var/run/sshd.pid" ] \ |
39 |
+ && SSHD_OPTS="${SSHD_OPTS} -o PidFile=${SSHD_PIDFILE}" |
40 |
+ [ "${SSHD_CONFDIR}" != "/etc/ssh" ] \ |
41 |
+ && SSHD_OPTS="${SSHD_OPTS} -f ${SSHD_CONFDIR}/sshd_config" |
42 |
+ |
43 |
+ "${SSHD_BINARY}" -t ${SSHD_OPTS} || return 1 |
44 |
} |
45 |
|
46 |
gen_key() { |
47 |
@@ -50,17 +55,12 @@ |
48 |
} |
49 |
|
50 |
start() { |
51 |
- local myopts="" |
52 |
- [ "${SSHD_PIDFILE}" != "/var/run/sshd.pid" ] \ |
53 |
- && myopts="${myopts} -o PidFile=${SSHD_PIDFILE}" |
54 |
- [ "${SSHD_CONFDIR}" != "/etc/ssh" ] \ |
55 |
- && myopts="${myopts} -f ${SSHD_CONFDIR}/sshd_config" |
56 |
- |
57 |
checkconfig || return 1 |
58 |
+ |
59 |
ebegin "Starting ${SVCNAME}" |
60 |
start-stop-daemon --start --exec "${SSHD_BINARY}" \ |
61 |
--pidfile "${SSHD_PIDFILE}" \ |
62 |
- -- ${myopts} ${SSHD_OPTS} |
63 |
+ -- ${SSHD_OPTS} |
64 |
eend $? |
65 |
} |