blob: 11a5eb1c8b8c6b785358e683c57367449fb803cf (
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 FILESYSTEMS 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"
|