summaryrefslogtreecommitdiff
path: root/sysvinit/freebsd/cloudinit
diff options
context:
space:
mode:
Diffstat (limited to 'sysvinit/freebsd/cloudinit')
-rwxr-xr-xsysvinit/freebsd/cloudinit6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysvinit/freebsd/cloudinit b/sysvinit/freebsd/cloudinit
index 17eaa547..c5478678 100755
--- a/sysvinit/freebsd/cloudinit
+++ b/sysvinit/freebsd/cloudinit
@@ -6,6 +6,8 @@
. /etc/rc.subr
+export CLOUD_CFG=/usr/local/etc/cloud/cloud.cfg
+
name="cloudinit"
command="/usr/local/bin/cloud-init"
start_cmd="cloudinit_start"
@@ -14,8 +16,6 @@ rcvar="cloudinit_enable"
start_precmd="cloudinit_override"
start_cmd="cloudinit_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()
cloudinit_start()
{
echo -n "${command} starting"
- ${command} -f ${cloudinit_config} init
+ ${command} init
}
load_rc_config $name