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:
parent
0045932202
commit
83b7a0a3e2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=180308
27
multimedia/mythtv/files/mythbackend.in
Normal file
27
multimedia/mythtv/files/mythbackend.in
Normal 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"
|
Loading…
Reference in New Issue
Block a user