aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/3dm/files/3dm2.sh.in
blob: b0f9f0e72a2a0f5669c7bfdcb1c0fbd3b9533213 (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
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: 3dm2
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: FreeBSD shutdown

#
# Add the following lines to /etc/rc.conf to enable 3dm2:
# twdm2_enable="YES"
#

. %%RC_SUBR%%

name=twdm2
rcvar=`set_rcvar`

start_precmd=twdm2_precmd
command="%%PREFIX%%/sbin/3dm2"
required_files=%%PREFIX%%/etc/3dm2/3dm2.conf

twdm2_precmd()
{
    umask 077
}

# set default
twdm2_enable=${twdm2_enable:-"NO"}

load_rc_config $name
run_rc_command "$1"