summaryrefslogtreecommitdiff
path: root/sysvinit/freebsd/cloudfinal
diff options
context:
space:
mode:
Diffstat (limited to 'sysvinit/freebsd/cloudfinal')
-rwxr-xr-xsysvinit/freebsd/cloudfinal6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysvinit/freebsd/cloudfinal b/sysvinit/freebsd/cloudfinal
index dd02b081..f668e036 100755
--- a/sysvinit/freebsd/cloudfinal
+++ b/sysvinit/freebsd/cloudfinal
@@ -6,6 +6,8 @@
. /etc/rc.subr
+export CLOUD_CFG=/usr/local/etc/cloud/cloud.cfg
+
name="cloudfinal"
command="/usr/local/bin/cloud-init"
start_cmd="cloudfinal_start"
@@ -14,8 +16,6 @@ rcvar="cloudinit_enable"
start_precmd="cloudinit_override"
start_cmd="cloudfinal_start"
-: ${cloudinit_config:="/usr/local/etc/cloud/cloud.cfg"}
-
cloudinit_override()
{
# If there exist sysconfig/defaults variable override files use it...
@@ -27,7 +27,7 @@ cloudinit_override()
cloudfinal_start()
{
echo -n "${command} starting"
- ${command} -f ${cloudinit_config} modules --mode final
+ ${command} modules --mode final
}
load_rc_config $name