#!/bin/sh # # $FreeBSD$ # # PROVIDE: iroffer # REQUIRE: LOGIN # KEYWORD: shutdown # # iroffer_enable="YES" # iroffer_flags="" # iroffer_user="" # iroffer_bin="" # iroffer_dir="" # iroffer_config="" # # See iroffer(1) for iroffer_flags # . /etc/rc.subr name="iroffer" rcvar=iroffer_enable # read configuration and set defaults load_rc_config "$name" : ${iroffer_enable="NO"} : ${iroffer_user="bot"} : ${iroffer_bin="iroffer"} : ${iroffer_dir="/home/bot/iroffer/"} : ${iroffer_config="${iroffer_dir}mybot.config"} start_precmd="iroffer_checkdisk" restart_precmd="iroffer_checkdisk" iroffer_checkdisk() { cd "${iroffer_dir}" if [ -n "${iroffer_dir}" ]; then freespace=`df -k . | tail -1 | awk {'print $4'}` if [ "${freespace}" -lt 10 ]; then echo "Filesystem Full!" >&2 exit fi fi } required_files="${iroffer_config}" command="${iroffer_dir}/${iroffer_bin}" if [ -n "${iroffer_dir}" ]; then command_args="${command_args} -w ${iroffer_dir}" fi command_args="${command_args} -u ${iroffer_user}" command_args="${command_args} -b ${iroffer_config}" pidfile="${iroffer_dir}/mybot.pid" run_rc_command "$1" # eof /'>freebsd-ports-gnome
FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-201-0/+1
* - Convert to new perl frameworkmat2013-08-031-6/+3
* - Fix missing DEPENDS to silence build warningsswills2011-09-251-1/+2
* - Update to 2.11swills2011-05-091-1/+1
* - Update to 2.10wen2010-11-041-4/+4
* - Update to 2.04wen2010-06-221-3/+3
* - Update to 2.03wen2010-04-021-1/+1