ports/net/dtcpclient/files/dtcpclient.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

34 lines
877 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: dtcpclient
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# Define these dtcpclient_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/dtcpclient
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
dtcpclient_enable=${dtcpclient_enable:-"NO"} # Enable dtcpclient
#dtcpclient_program="%%PREFIX%%/sbin/dtcpclient" # Location of dtcpclient
dtcpclient_server=${dtcpclient_server:-""} # DTCP server name
dtcpclient_username=${dtcpclient_username:-""} # DTCP user name
dtcpclient_flags=${dtcpclient_flags:-"-t network -Dl"} # Flags to dtcpclient program
. /etc/rc.subr
name="dtcpclient"
rcvar=dtcpclient_enable
command="%%PREFIX%%/sbin/${name}"
pidfile="/var/run/${name}.pid"
extra_commands="reload"
load_rc_config $name
command_args="-u ${dtcpclient_username} ${dtcpclient_server}"
run_rc_command "$1"