diff options
author | manu <manu@pkgsrc.org> | 2006-05-20 20:23:38 +0000 |
---|---|---|
committer | manu <manu@pkgsrc.org> | 2006-05-20 20:23:38 +0000 |
commit | 6259813f6a0734ec0c52ef527d9dfc75449d9a87 (patch) | |
tree | 4935b89ec981c9f2efb7e66d1f75f7d1774ca8e4 /net/hobbitmon | |
parent | 09571989ba57c4178f7e1a2721e009cabf76473f (diff) | |
download | pkgsrc-6259813f6a0734ec0c52ef527d9dfc75449d9a87.tar.gz |
Startup script from Nathan Arthur
Diffstat (limited to 'net/hobbitmon')
-rw-r--r-- | net/hobbitmon/files/hobbit.sh | 29 |
1 files changed, 29 insertions, 0 deletions
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" |