mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-02-02 13:32:42 +01:00
27 lines
635 B
Text
27 lines
635 B
Text
#!/sbin/runscript
|
|
# Copyright 1999-2010 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
depend() {
|
|
need net
|
|
use mysql
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting dradis"
|
|
cd /usr/share/dradis/
|
|
start-stop-daemon --start --quiet \
|
|
--pidfile /usr/share/dradis/tmp/pids/server.pid \
|
|
--exec /usr/bin/ruby /usr/share/dradis/script/server -- \
|
|
--daemon --environment=production \
|
|
--binding=${DRADIS_ADDRESS} --port=${DRADIS_PORT}
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping dradis"
|
|
cd /usr/share/dradis/
|
|
start-stop-daemon --stop --quiet --pidfile /usr/share/dradis/tmp/pids/server.pid
|
|
eend $?
|
|
}
|