Commit 0dcd57dd authored by Heinz N. Gies's avatar Heinz N. Gies

Merge branch 'test' into dev

parents d077e697 7bcde331
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: dalmatinerdb
# REQUIRE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="dalmatinerdb"
rcvar=dalmatinerdb_enable
load_rc_config $name
: ${dalmatinerdb="NO"}
start_cmd="${name}_start"
stop_cmd="${name}_stop"
dalmatinerdb_start()
{
if checkyesno ${rcvar}; then
echo "* starting dalmatiner db... "
/usr/local/bin/sudo -u dalmatinerdb /usr/ddb/bin/ddb start
fi
}
dalmatinerdb_stop()
{
if checkyesno ${rcvar}; then
echo "* stopping dalmatiner db... "
/usr/local/bin/sudo -u dalmatinerdb /usr/ddb/bin/ddb stop
fi
}
run_rc_command "$1"
......@@ -26,7 +26,7 @@ dalmatinerfe_start()
{
if checkyesno ${rcvar}; then
echo "* starting dalmatiner db... "
/usr/local/bin/sudo -u dalmatinerfe /usr/ddb/bin/ddb start
/usr/local/bin/sudo -u dalmatinerfe /usr/dpx/bin/dpx start
fi
}
......@@ -34,7 +34,7 @@ dalmatinerfe_stop()
{
if checkyesno ${rcvar}; then
echo "* stopping dalmatiner db... "
/usr/local/bin/sudo -u dalmatinerfe /usr/ddb/bin/ddb stop
/usr/local/bin/sudo -u dalmatinerfe /usr/dpx/bin/dpx stop
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment