Starting a poudboot rc service for building when the poudriere vm launches.
This commit is contained in:
23
ansible/roles/poudriere/files/poudboot
Normal file
23
ansible/roles/poudriere/files/poudboot
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
# /usr/local/etc/rc.d/poudboot
|
||||
#
|
||||
# REQUIRE: FILESYSTEM kld
|
||||
# PROVIDE: poudboot
|
||||
# AFTER: netif
|
||||
|
||||
. /etc/rc.subr
|
||||
name=poudboot
|
||||
rcvar=${name}_enable
|
||||
start_cmd="${name}_start"
|
||||
stop_cmd="${name}_stop"
|
||||
load_rc_config $name
|
||||
|
||||
poudboot_start() {
|
||||
/usr/local/bin/poudboot start
|
||||
}
|
||||
|
||||
poudboot_stop() {
|
||||
/usr/local/bin/poudboot stop
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
Reference in New Issue
Block a user