freebsd-ports/sysutils/torque/files/pbs_mom.in
Guido Falsi ac8c103656 - "Update" to 2.5.12. This is the supported stable branch upstream
- Bump PORTEPOCH
- Trim Makefile header
- Add CONFLICTS_INSTALL [1]
- Make rc scripts more rclint compliant
- Update WWW line in pkg-descr

PR:		ports/175063
Submitted by:	Jason Bacon <jwbacon@tds.net> (maintainer)
Approved by:	danfe (maintainer of games/qstat, via email) [1]
Approved by:	Kai Wang <kaiwang27@gmail.com> (maintainer of chinese/qterm) [1]
Feature safe:	yes
2013-04-16 18:23:45 +00:00

29 lines
490 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: pbs_mom
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# 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=pbs_mom_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"