blob: 08834870afe5670bfa2efa616107e0ea94260f7c (
plain)
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
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
depend() {
need net
}
start() {
ebegin "Starting openvassd"
start-stop-daemon --start --quiet -n openvassd --exec /usr/sbin/openvassd -- --quiet
eend $?
}
stop() {
ebegin "Stop openvassd"
start-stop-daemon --stop --quiet -n openvassd
einfo "Waiting for the environment to be sane"
RUNNING=$(ps aux | grep -m 1 openvassd: | grep -v grep)
while [ -n "$RUNNING" ] ; do
sleep 1
RUNNING=$(ps aux | grep -m 1 openvassd: | grep -v grep)
done
eend $?
}
|