diff options
author | Greg Lehey <grog@FreeBSD.org> | 2006-12-21 05:52:54 +0000 |
---|---|---|
committer | Greg Lehey <grog@FreeBSD.org> | 2006-12-21 05:52:54 +0000 |
commit | 83b7a0a3e2e305fadc07caa69a6696480a9aa0a7 (patch) | |
tree | bef54ed0147a6ac36a0d1b6aebf73a0c5f5e86e7 | |
parent | 00459322025c73607d4bcc4613028b4a4612e13f (diff) | |
download | ports-83b7a0a3e2e305fadc07caa69a6696480a9aa0a7.tar.gz ports-83b7a0a3e2e305fadc07caa69a6696480a9aa0a7.zip |
Install the rc.d script in the canonical way.
Suggested by: itetcu
Notes
Notes:
svn path=/head/; revision=180308
-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 000000000000..f13a21f9861e --- /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" |