Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 493288
Collapse All | Expand All

(-)gsad (-15 / +8 lines)
Lines 3-23 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad,v 1.2 2012/03/27 11:51:13 scarabeus Exp $ 
4
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/greenbone-security-assistant/files/gsad,v 1.2 2012/03/27 11:51:13 scarabeus Exp $ 
5
5
6
depend() {
6
description="Greenbone Security Assistant Daemon"
7
	need net
7
description_start="Start ${SVCNAME}"
8
}
8
description_stop="Stop ${SVCNAME}"
9
9
10
start() {
10
pidfile=/run/${SVCNAME}.pid
11
	ebegin "Starting Greenbone Security Assistant Daemon"
11
command="$(which ${SVCNAME})"
12
	start-stop-daemon --start --name gsad \
12
command_args="${GSAD_OPTS}"
13
		--exec /usr/sbin/gsad \
14
		--pidfile /var/run/gsad.pid
15
	eend $?
16
}
17
13
18
stop() {
14
depend() {
19
	ebegin "Stop openvassd"
15
	need net
20
	start-stop-daemon --stop --name gsad \
21
		--pidfile /var/run/gsad.pid
22
	eend $?
23
}
16
}

Return to bug 493288