mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
d14aab6936
- RC'ify - Take maintainership PR: ports/95889 Submitted by: me Approved by: krion (mentor)
26 lines
400 B
Bash
26 lines
400 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: radvd
|
|
# REQUIRE: NETWORKING
|
|
|
|
#
|
|
# Add the following line to /etc/rc.conf to enable radvd:
|
|
#
|
|
# radvd_enable="YES"
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name=radvd
|
|
rcvar=`set_rcvar`
|
|
prefix=%%PREFIX%%
|
|
pidfile=/var/run/${name}.pid
|
|
command="${prefix}/sbin/${name}"
|
|
command_args="-p ${pidfile}"
|
|
required_files="${prefix}/etc/${name}.conf"
|
|
|
|
load_rc_config $name
|
|
: ${radvd_enable="NO"}
|
|
|
|
run_rc_command "$1"
|