aboutsummaryrefslogtreecommitdiff
path: root/sysutils/fvcool/files/fvcool.in
blob: 8d4c0cadc543a7be5e9f5d1ff3efc6c73e2c281f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/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"