freebsd-ports/sysutils/tenshi/files/tenshi.sh.in
Renato Botelho 8c2d01e97b - Update to 0.4. This version adds several features and fixes a few bugs: [1]
* added uid, gid options for setting effective UID, GID
   * added colourization of debug messages
   * added filter, filterargs options for report pre-processing
   * added [pager:]<mail_to> syntax for sending pager friendly reports
   * added mailtimeout option
   * fixed tail, tailargs incorrectly being treated as dynamic options
- Use USE_RC_SUBR=script and remove 2 lines pkg-plist [2]

PR:		ports/95332 [1]
Submitted by:	maintainer [1], garga [2]
Approved by:	maintainer [2]
2006-04-05 19:37:00 +00:00

34 lines
483 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: tenshi
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable `tenshi':
#
#tenshi_enable="YES"
#
. '%%RC_SUBR%%'
name='tenshi'
rcvar=`set_rcvar`
extra_commands='reload'
command='%%PREFIX%%/bin/tenshi'
command_interpreter='%%PERL%%'
pidfile='/var/run/tenshi.pid'
required_files='%%PREFIX%%/etc/tenshi.conf'
# set defaults
tenshi_enable="${tenshi_enable:-NO}"
load_rc_config "$name"
run_rc_command "$1"