Add ggated rc script
Reviewed by: asomers, peterj Submitted by: Johannes Totz <jo@bruelltuete.com> Differential Revision: https://reviews.freebsd.org/D31709
This commit is contained in:
parent
561524cfb0
commit
c068632981
@ -296,6 +296,9 @@ iscsictl_flags="-Aa" # Optional flags to iscsictl.
|
||||
hastd_enable="NO" # Run the HAST daemon (YES/NO).
|
||||
hastd_program="/sbin/hastd" # path to hastd, if you want a different one.
|
||||
hastd_flags="" # Optional flags to hastd.
|
||||
ggated_enable="NO" # Run the ggate daemon (YES/NO).
|
||||
ggated_config="/etc/gg.exports"
|
||||
ggated_params="" # Extra parameters like which port to bind to.
|
||||
ctld_enable="NO" # CAM Target Layer / iSCSI target daemon.
|
||||
local_unbound_enable="NO" # Local caching resolver
|
||||
local_unbound_tls="NO" # Use DNS over TLS
|
||||
|
@ -32,6 +32,7 @@ CONFS= DAEMON \
|
||||
gbde \
|
||||
geli \
|
||||
geli2 \
|
||||
ggated \
|
||||
gptboot \
|
||||
growfs \
|
||||
hostid \
|
||||
|
21
libexec/rc/rc.d/ggated
Normal file
21
libexec/rc/rc.d/ggated
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
# PROVIDE: ggated
|
||||
# REQUIRE: NETWORKING
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="ggated"
|
||||
desc="GEOM Gate network daemon"
|
||||
rcvar="ggated_enable"
|
||||
command="/sbin/${name}"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
|
||||
load_rc_config $name
|
||||
params="${ggated_params}"
|
||||
config="${ggated_config:-/etc/gg.exports}"
|
||||
required_files="${config}"
|
||||
|
||||
command_args="${params} ${config}"
|
||||
|
||||
run_rc_command "$1"
|
Loading…
Reference in New Issue
Block a user