diff options
Diffstat (limited to 'net-analyzer/openvas-manager/files/openvasmd')
-rw-r--r-- | net-analyzer/openvas-manager/files/openvasmd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net-analyzer/openvas-manager/files/openvasmd b/net-analyzer/openvas-manager/files/openvasmd new file mode 100644 index 000000000000..89accf4eed21 --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvasmd @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net openvassd +} + +start() { + ebegin "Starting openvasmd (manager)" + start-stop-daemon --start --name openvasmd \ + --exec /usr/sbin/openvasmd \ + --pidfile /var/run/openvasmd.pid + eend $? +} + +stop() { + ebegin "Stop openvasmd" + start-stop-daemon --stop --name openvasmd \ + --pidfile /var/run/openvasmd.pid + eend $? +} |