From 79af3116e6e2b46eb55bd5e08a2c9a3372e27fc1 Mon Sep 17 00:00:00 2001 From: manu Date: Sat, 20 May 2006 20:23:38 +0000 Subject: Startup script from Nathan Arthur --- net/hobbitmon/files/hobbit.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 net/hobbitmon/files/hobbit.sh (limited to 'net') diff --git a/net/hobbitmon/files/hobbit.sh b/net/hobbitmon/files/hobbit.sh new file mode 100644 index 00000000000..694895a49f9 --- /dev/null +++ b/net/hobbitmon/files/hobbit.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Hobbit site monitoring server +# Startup script contributed by Nathan Arthur +# +# PROVIDE: hobbit +# REQUIRE: DAEMON + +name="hobbit" + +# user-settable rc.conf variables +: ${hobbit_launchcfg:="/usr/pkg/hobbit/server/etc/hobbitlaunch.cfg"} +: ${hobbit_servercfg:="/usr/pkg/hobbit/server/etc/hobbitserver.cfg"} +: ${hobbit_log:="/var/log/hobbit/hobbitlaunch.log"} +: ${hobbit_pidfile:="/var/run/${name}.pid"} + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +rcvar=${name} +hobbit_user="hobbit" +pidfile=${hobbit_pidfile} +required_files="${hobbit_launchcfg} ${hobbit_servercfg}" +command="/usr/pkg/hobbit/server/bin/hobbitlaunch" +command_args="--config=${hobbit_launchcfg} --env=${hobbit_servercfg} --log=${hobbit_log} --pidfile=${hobbit_pidfile}" + +load_rc_config $name +run_rc_command "$1" -- cgit v1.2.3