1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/sysutils/3dm/files/3dm2.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

36 lines
480 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: 3dm2
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable 3dm2:
# twdm2_enable="YES"
#
. /etc/rc.subr
name=twdm2
rcvar=twdm2_enable
start_precmd=twdm2_precmd
command="%%PREFIX%%/sbin/3dm2"
required_files=%%PREFIX%%/etc/3dm2/3dm2.conf
sig_stop=INT
twdm2_precmd()
{
umask 077
}
# set default
twdm2_enable=${twdm2_enable:-"NO"}
load_rc_config $name
run_rc_command "$1"