1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

Install the rc.d script in the canonical way.

Suggested by: itetcu
This commit is contained in:
Greg Lehey 2006-12-21 05:52:54 +00:00
parent 0045932202
commit 83b7a0a3e2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=180308

View File

@ -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"