#!/bin/sh
#
#
# PROVIDE: stargazer
# REQUIRE: mysql
# REQUIRE: LOGIN cleanvar
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable stargazer:
#
#stargazer_enable="YES"
#stargazer_flags="string" - Path to STG config dir
#
. /etc/rc.subr
name=stargazer
rcvar=`set_rcvar`
command=/usr/sbin/stargazer # Path to stargazer binary
start_postcmd="start_postcmd"
start_postcmd()
{
ps -ax | grep $command | grep -v grep | awk '{print $1;}' > $pidfile
}
pidfile=/var/run/stargazer.pid
stop_postcmd=stop_postcmd
stop_postcmd()
{