summaryrefslogtreecommitdiff
path: root/sysvinit/freebsd/cloudinit
blob: 6bf7fa5b836d4eef3a124c7e0d24bbec38ec4555 (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: cloudinit
# REQUIRE: FILESYSTEMS NETWORKING cloudinitlocal devd
# BEFORE:  cloudconfig cloudfinal

. /etc/rc.subr

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

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

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

load_rc_config $name
run_rc_command "$1"