ports/sysutils/fvcool/files/fvcool.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

47 lines
911 B
Bash

#!/bin/sh
#
# @(#) $FreeBSD$
# PROVIDE: %%PORTNAME%%
# REQUIRE: LOGIN abi
# BEFORE: securelevel
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable `%%PORTNAME%%':
#
# %%PORTNAME%%_enable="YES"
#
# Other rc.conf variables:
#
# %%PORTNAME%%_flags Set to "-v" for verbose mode.
#
. /etc/rc.subr
name="%%PORTNAME%%"
rcvar=%%PORTNAME%%_enable
command="%%PREFIX%%/sbin/%%PORTNAME%%"
command_args="-e"
# %%PORTNAME%% is a command to be run during startup and shutdown, not a
# long running daemon process. There's no pidfile to check, and it's
# hard to tell if %%PORTNAME%% is enabled or not -- just run '%%PORTNAME%% -e' to
# force enable it, '%%PORTNAME%% -d' to disable.
stop_cmd="stop_cmd"
stop_cmd()
{
$command -d
}
status_cmd="status_cmd"
status_cmd()
{
echo "Can't check %%PORTNAME%% status"
}
load_rc_config "$name"
: ${%%PORTNAME%%_enable="NO"}
run_rc_command "$1"