diff options
author | grog <grog@FreeBSD.org> | 2006-12-21 13:52:54 +0800 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2006-12-21 13:52:54 +0800 |
commit | 2497e11cd12ddcce347282e65f8763fb7f248269 (patch) | |
tree | 3b3813958dee5ede610bd49bc4cab52a52de800d /multimedia/mythtv | |
parent | 38d8ff7edec46aadce65bbf601fa807aaffa8fdb (diff) | |
download | freebsd-ports-graphics-2497e11cd12ddcce347282e65f8763fb7f248269.tar.gz freebsd-ports-graphics-2497e11cd12ddcce347282e65f8763fb7f248269.tar.zst freebsd-ports-graphics-2497e11cd12ddcce347282e65f8763fb7f248269.zip |
Install the rc.d script in the canonical way.
Suggested by: itetcu
Diffstat (limited to 'multimedia/mythtv')
-rw-r--r-- | multimedia/mythtv/files/mythbackend.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/multimedia/mythtv/files/mythbackend.in b/multimedia/mythtv/files/mythbackend.in new file mode 100644 index 00000000000..f13a21f9861 --- /dev/null +++ b/multimedia/mythtv/files/mythbackend.in @@ -0,0 +1,27 @@ +#!/bin/sh + +# PROVIDE: mythbackend +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: FreeBSD shutdown + +# Define mythbackend_enable in one of these places: +# /etc/rc.conf +# /etc/rc.conf.local +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +mythbackend_enable=${mythbackend_enable-"NO"} +PATH=${PATH}:%%PREFIX%%/bin + +. %%RC_SUBR%% + +name="mythbackend" +rcvar=`set_rcvar` +command="%%PREFIX%%/bin/mythbackend &" + +load_rc_config $name + +start_cmd="echo \"Starting ${name}.\"; ${command}" + +run_rc_command "$1" |