ports/sysutils/idled/files/idled.sh
Edwin Groothuis 2192ea32a1 [PATCH] sysutils/idled 1.16
This patch adds rc_subr support to the idled port.

PR:		ports/57383
Submitted by:	Martin Matuska <martin@tradex.sk>
Approved by: 	maintainer timeout
2004-01-03 06:59:22 +00:00

33 lines
462 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: idled
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: FreeBSD shutdown
#
# Add the following lines to /etc/rc.conf to enable idled:
#
#idled_enable="YES"
#
# See idled(8) for flags
#
. %%RC_SUBR%%
name=idled
rcvar=`set_rcvar`
command=%%PREFIX%%/libexec/idled
required_files=%%PREFIX%%/etc/idled.cf
# set defaults
idled_enable=${idled_enable:-"NO"}
idled_flags=${idled_flags:-""}
load_rc_config $name
run_rc_command "$1"