ac8c103656
- 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
29 lines
490 B
Bash
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"
|