summaryrefslogtreecommitdiff
path: root/sysvinit/freebsd/cloudinitlocal
blob: 7a034b3bf4f3e7a56f902bf50afd05c654bc2999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# PROVIDE: cloudinitlocal
# REQUIRE: ldconfig mountcritlocal 
# BEFORE:  NETWORKING cloudinit cloudconfig cloudfinal

. /etc/rc.subr

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

name="cloudinitlocal"
command="/usr/local/bin/cloud-init"
start_cmd="cloudlocal_start"
stop_cmd=":"
rcvar="cloudinit_enable"
start_cmd="cloudlocal_start"

cloudlocal_start()
{
	echo -n "${command} starting"
	${command} init --local
}

load_rc_config $name
run_rc_command "$1"