diff options
author | ume <ume@FreeBSD.org> | 2003-09-07 01:45:02 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-09-07 01:45:02 +0800 |
commit | 18c7c629808ed30b589f184d90d10efa115963e0 (patch) | |
tree | efa749f7c719fdb600b50796194db5673014c9af /net/dtcpclient/files | |
parent | a9576593d38046f782644d284059d62049ee0e2f (diff) | |
download | freebsd-ports-gnome-18c7c629808ed30b589f184d90d10efa115963e0.tar.gz freebsd-ports-gnome-18c7c629808ed30b589f184d90d10efa115963e0.tar.zst freebsd-ports-gnome-18c7c629808ed30b589f184d90d10efa115963e0.zip |
Use USE_RC_SUBR.
Diffstat (limited to 'net/dtcpclient/files')
-rw-r--r-- | net/dtcpclient/files/dtcpclient.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/net/dtcpclient/files/dtcpclient.sh b/net/dtcpclient/files/dtcpclient.sh new file mode 100644 index 000000000000..884fad8f03eb --- /dev/null +++ b/net/dtcpclient/files/dtcpclient.sh @@ -0,0 +1,40 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: dtcpclient +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: FreeBSD shutdown +# +# NOTE for FreeBSD 5.0+: +# If you want this script to start with the base rc scripts +# move imapd.sh to /etc/rc.d/dtcpclient + +prefix=%%PREFIX%% + +# Define these imapd_* 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="NO" # Enable dtcpclient +#dtcpclient_program="${prefix}/sbin/dtcpclient" # Location of dtcpclient +dtcpclient_server="" # DTCP server name +dtcpclient_username="" # DTCP user name +dtcpclient_flags="-t network -Dl" # Flags to dtcpclient program + +. %%RC_SUBR%% + +name="dtcpclient" +rcvar=`set_rcvar` +command="${prefix}/sbin/${name}" +pidfile="/var/run/${name}.pid" +extra_commands="reload" + +load_rc_config $name +flags="${dtcpclient_flags} -u ${dtcpclient_username} ${dtcpclient_server}" +run_rc_command "$1" |