freebsd-ports/sysutils/torque/files/pbs_mom.sh.in
Doug Barton 29813d5397 Remove painful examples of foo="", with particular prejudice against
constructions that parse out to [ -z "$foo" ] && foo=""

These are bad examples that get copied and pasted into new code, so the
hope is that with less bad examples there will be less need for me to
bring this up in review.

In a few of these files all that were changed were comments so that next
time I search for these patterns I won't trip on the file for no reason.

In a few places, add $FreeBSD$

No functional changes, so no PORTREVISION bumps
2011-05-15 02:49:17 +00:00

27 lines
449 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: pbs_mom
# REQUIRE:
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# pbs_mom_enable (bool): Set to NO by default.
# Set it to YES to enable pbs_mom.
#
. /etc/rc.subr
name="pbs_mom"
rcvar=${name}_enable
pidfile=/var/spool/torque/mom_priv/mom.lock
command=%%PREFIX%%/sbin/${name}
load_rc_config $name
: ${pbs_mom_enable="NO"}
run_rc_command "$1"