blob: ac27e44587a362ee5cb91aab3c404b0490f8756f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/files/sshd.rc6,v 1.27 2009/08/12 08:09:52 idl0r Exp $
depend() {
use logger dns
need net
}
SHELLINABOXD_PIDFILE=${SHELLINABOXD_PIDFILE:-/var/run/${SVCNAME}.pid}
SHELLINABOXD_BINARY=${SHELLINABOXD_BINARY:-/usr/bin/shellinaboxd}
SHELLINABOXD_DATADIR="${SHELLINABOXD_DATADIR:-/var/lib/shellinabox}"
SHELLINABOXD_PORT="${SHELLINABOXD_PORT:-4200}"
start() {
ebegin "Starting ${SVCNAME}"
start-stop-daemon --start --oknodo --exec "${SHELLINABOXD_BINARY}" \
--pidfile "${SHELLINABOXD_PIDFILE}" \
-- -q --background="${SHELLINABOXD_PIDFILE}" --disable-ssl-menu \
--user=shellinabox --group=shellinabox \
--cert="${SHELLINABOXD_DATADIR}" --port="${SHELLINABOXD_PORT}" \
${SHELLINABOXD_OPTS}
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop --exec "${SHELLINABOXD_BINARY}" \
--pidfile "${SHELLINABOXD_PIDFILE}" --quiet
eend $?
}
|