| 1 |
#!/sbin/runscript |
| 2 |
# Copyright 1999-2012 Gentoo Foundation |
| 3 |
# Distributed under the terms of the GNU General Public License v2 |
| 4 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/sslh/files/sslh.init.d,v 1.1 2010/03/05 17:27:40 vapier Exp $ |
| 5 |
|
| 6 |
start() { |
| 7 |
ebegin "Starting ${SVCNAME}" |
| 8 |
start-stop-daemon --start \ |
| 9 |
--pidfile /var/run/${SVCNAME}.pid \ |
| 10 |
--exec /usr/sbin/sslh -- \ |
| 11 |
${OPTIONS} \ |
| 12 |
--pidfile /var/run/${SVCNAME}.pid |
| 13 |
eend $? |
| 14 |
} |
| 15 |
|
| 16 |
stop() { |
| 17 |
ebegin "Stopping ${SVCNAME}" |
| 18 |
start-stop-daemon --stop --quiet --retry 20 \ |
| 19 |
--pidfile /var/run/${SVCNAME}.pid |
| 20 |
eend $? |
| 21 |
} |