/[gentoo-x86]/net-misc/ssh/files/sshd2
Gentoo

Contents of /net-misc/ssh/files/sshd2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Nov 20 04:48:53 2008 UTC (11 years, 3 months ago) by darkside
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
remove from tree by treecleaners, masked for years 'pending removal' bug #139969

1 #!/sbin/runscript
2 # Copyright 1999-2004 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/net-misc/ssh/files/sshd2,v 1.3 2004/07/15 00:12:48 agriffis Exp $
5
6 depend() {
7 use logger dns
8 need net
9 }
10
11 checkconfig() {
12 if [ ! -e /etc/ssh2/sshd2_config ] ; then
13 eerror "You need an /etc/ssh/sshd2_config file to run sshd"
14 eerror "There is a sample file in /etc/ssh2/"
15 return 1
16 fi
17 }
18
19
20 start() {
21 checkconfig || return 1
22 ebegin "Starting sshd2"
23 start-stop-daemon --start --quiet --pidfile /var/run/sshd2.pid \
24 --startas /usr/sbin/sshd2
25 eend $?
26 }
27
28 stop() {
29 ebegin "Stopping sshd2"
30 start-stop-daemon --stop --quiet --pidfile /var/run/sshd2_22.pid
31 eend $?
32 }

  ViewVC Help
Powered by ViewVC 1.1.20