summaryrefslogtreecommitdiff
blob: a00b0f26b77816c1f62663fb67c7125c53ff33e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/sslh/files/sslh.init.d-2,v 1.1 2012/07/06 18:16:19 kensington Exp $

start() {
	ebegin "Starting ${SVCNAME}"
	start-stop-daemon --start \
		--exec /usr/bin/sslh -- ${OPTIONS} \
		--pidfile /var/run/sslh.pid
	eend $?
}

stop() {
	ebegin "Stopping ${SVCNAME}"
	start-stop-daemon --stop --quiet --retry 20 \
		--pidfile /var/run/sslh.pid
	eend $?
}